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

Definition

Gets the element at the specified index.

public static T GetElement<T> (this System.Runtime.Intrinsics.Vector64<T> vector, int index) where T : struct;
public static T GetElement<T> (this System.Runtime.Intrinsics.Vector64<T> vector, int index);

Type Parameters

T

The type of the input vector.

Parameters

vector
Vector64<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

The type of vector (T) is not supported.

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

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9