Vector256.GetElement<T>(Vector256<T>, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’élément à l’index spécifié.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetElement(System::Runtime::Intrinsics::Vector256<T> vector, int index);
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);
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> * int -> 'T
static member GetElement : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * int -> 'T (requires 'T : struct)
<Extension()>
Public Function GetElement(Of T) (vector As Vector256(Of T), index As Integer) As T
<Extension()>
Public Function GetElement(Of T As Structure) (vector As Vector256(Of T), index As Integer) As T
Paramètres de type
- T
Type du vecteur d’entrée.
Paramètres
- vector
- Vector256<T>
Vecteur à partir duquel obtenir l’élément.
- index
- Int32
Index de l’élément à obtenir.
Retours
Valeur de l’élément à index.
Exceptions
Le type de vector (T) n’est pas pris en charge.
index était inférieur à zéro ou supérieur au nombre d’éléments.