Szerkesztés

Megosztás a következőn keresztül:


Vector.GetElement<T>(Vector<T>, Int32) Method

Definition

Gets the element at the specified index.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T GetElement(System::Numerics::Vector<T> vector, int index);
public static T GetElement<T> (this System.Numerics.Vector<T> vector, int index);
static member GetElement : System.Numerics.Vector<'T> * int -> 'T
<Extension()>
Public Function GetElement(Of T) (vector As Vector(Of T), index As Integer) As T

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector<T>

The vector to get the element from.

index
Int32

The index of the element to get.

Returns

T

The value of the element at index.

Exceptions

index was less than zero or greater than the number of elements.

The type of vector (T) is not supported.

Applies to