Vector<T> Vector<T> Vector<T> Vector<T> Constructors

Definition

Overloads

Vector<T>(Span<T>) Vector<T>(Span<T>) Vector<T>(Span<T>) Vector<T>(Span<T>)
Vector<T>(T) Vector<T>(T) Vector<T>(T) Vector<T>(T)

Creates a vector whose components are of a specified type.

Vector<T>(T[]) Vector<T>(T[]) Vector<T>(T[]) Vector<T>(T[])

Creates a vector from a specified array.

Vector<T>(T[], Int32) Vector<T>(T[], Int32) Vector<T>(T[], Int32) Vector<T>(T[], Int32)

Creates a vector from a specified array starting at a specified index position.

Vector<T>(Span<T>) Vector<T>(Span<T>) Vector<T>(Span<T>) Vector<T>(Span<T>)

public:
 Vector(Span<T> values);
public Vector (Span<T> values);
new System.Numerics.Vector<'T (requires 'T : struct)> : Span<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (values As Span(Of T))

Parameters

Vector<T>(T) Vector<T>(T) Vector<T>(T) Vector<T>(T)

Creates a vector whose components are of a specified type.

public:
 Vector(T value);
public Vector (T value);
new System.Numerics.Vector<'T (requires 'T : struct)> : 'T -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (value As T)

Parameters

value
T T T T

The numeric type that defines the type of the components in the vector.

Remarks

value can be any primitive numeric type (that is, a numeric type whose Type.IsPrimitive property returns true.

Vector<T>(T[]) Vector<T>(T[]) Vector<T>(T[]) Vector<T>(T[])

Creates a vector from a specified array.

public:
 Vector(cli::array <T> ^ values);
public Vector (T[] values);
new System.Numerics.Vector<'T (requires 'T : struct)> : 'T[] -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (values As T())

Parameters

values
T[]

A numeric array.

Exceptions

Remarks

values must contain at least Count elements.

Vector<T>(T[], Int32) Vector<T>(T[], Int32) Vector<T>(T[], Int32) Vector<T>(T[], Int32)

Creates a vector from a specified array starting at a specified index position.

public:
 Vector(cli::array <T> ^ values, int index);
public Vector (T[] values, int index);
new System.Numerics.Vector<'T (requires 'T : struct)> : 'T[] * int -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (values As T(), index As Integer)

Parameters

values
T[]

A numeric array.

index
Int32 Int32 Int32 Int32

The starting index position from which to create the vector.

Exceptions

index is less than zero.

-or-

The length of values minus index is less than Count.

Remarks

The array must contain at least Vector<T>.Count elements from the specified index.

Applies to