Vector256.GetElement<T>(Vector256<T>, Int32) Metoda

Definice

Získá prvek na pozici zadaného indexu.

public:
generic <typename T>
 where T : value class[System::Runtime::CompilerServices::Extension]
 static T GetElement(System::Runtime::Intrinsics::Vector256<T> vector, int index);
public static T GetElement<T> (this System.Runtime.Intrinsics.Vector256<T> vector, int index) where T : struct;
static member GetElement : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * int -> 'T (requires 'T : struct)
<Extension()>
Public Function GetElement(Of T As Structure) (vector As Vector256(Of T), index As Integer) As T

Parametry typu

T

Typ vstupního vektoru.

Parametry

vector
Vector256<T>

Vektor pro získání prvku z.

index
Int32

Index prvku, který chcete získat.

Návraty

T

Hodnota prvku na index.

Výjimky

Typ vector (T) není podporován.

index byl menší než nula nebo větší než počet prvků.

Platí pro