Vector.CreateScalarUnsafe<T>(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<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.
public:
generic <typename T>
static System::Numerics::Vector<T> CreateScalarUnsafe(T value);
public static System.Numerics.Vector<T> CreateScalarUnsafe<T>(T value);
static member CreateScalarUnsafe : 'T -> System.Numerics.Vector<'T>
Public Function CreateScalarUnsafe(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 Vector<T> instance with the first element initialized to value and the remaining elements left uninitialized.
Exceptions
The type of value (T) is not supported.