Vector.CreateScalar(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new Vector
public:
generic
static System::Numerics::Vector CreateScalar(T value);
public static System.Numerics.Vector CreateScalar(T value);
static member CreateScalar : 'T -> System.Numerics.Vector<'T>
Public Function CreateScalar(Of T) (value As T) As Vector(Of T)
Type Parameters
- T
The type of the elements in the vector.
Parameters
- value
- T
The value that element 0 will be initialized to.
Returns
A new Vectorvalue and the remaining elements initialized to zero.
Exceptions
The type of value (T) is not supported.