Bagikan melalui


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

Definisi

Mendapatkan elemen pada indeks yang ditentukan.

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

Jenis parameter

T

Jenis vektor input.

Parameter

vector
Vector256<T>

Vektor untuk mendapatkan elemen dari.

index
Int32

Indeks elemen yang akan didapatkan.

Mengembalikan

T

Nilai elemen di index.

Pengecualian

Tipe vector (T) tidak didukung.

index kurang dari nol atau lebih besar dari jumlah elemen.

Berlaku untuk