Language

Vector.CreateScalarUnsafe(T) Method

Definition

Creates a new Vector instance with the first element initialized to the specified value and the remaining elements left uninitialized.

public:
generic 
 static System::Numerics::Vector CreateScalarUnsafe(T value);
public static System.Numerics.Vector CreateScalarUnsafe(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 instance with the first element initialized to value and the remaining elements left uninitialized.

Exceptions

The type of value (T) is not supported.

Applies to