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

Definition

Overloads

Vector<T>(ReadOnlySpan<Byte>) Vector<T>(ReadOnlySpan<Byte>) Vector<T>(ReadOnlySpan<Byte>) Vector<T>(ReadOnlySpan<Byte>)

Constructs a vector from the given read-only span of bytes.

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

Constructs a vector from the given ReadOnlySpan<T>.

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

Constructs a vector from the given 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>(ReadOnlySpan<Byte>) Vector<T>(ReadOnlySpan<Byte>) Vector<T>(ReadOnlySpan<Byte>) Vector<T>(ReadOnlySpan<Byte>)

Constructs a vector from the given read-only span of bytes.

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

Parameters

values
ReadOnlySpan<Byte>

A read-only span of bytes that contains the values to add to the vector. The span must contain at least Count elements.

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

Constructs a vector from the given ReadOnlySpan<T>.

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

Parameters

values
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

The values to add to the vector, as a read-only span of objects of type T. The span must contain at least Count elements.

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

Constructs a vector from the given 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

values
Span<T> Span<T> Span<T> Span<T>

The values to add to the vector, as a span of objects of type T. The span must contain at least Count elements.

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