Windows apps
Collapse the table of content
Expand the table of content

Vector<T> Constructor (array<T>, Int32)

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

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
Vector(
	array<T>^ values, 
	int index
)

Parameters

values
Type: array<T>

A numeric array.

index
Type: System::Int32

The starting index position from which to create the vector.

ExceptionCondition
ArgumentNullException

values is nullptr.

IndexOutOfRangeException

index is less than zero.

-or-

The length of values minus index is less than Vector<T>::Count.

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

Show:
© 2017 Microsoft