Vector256.ToScalar<T>(Vector256<T>) 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.
Convertit le vecteur donné en scalaire contenant la valeur du premier élément.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T ToScalar(System::Runtime::Intrinsics::Vector256<T> vector);
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static T ToScalar(System::Runtime::Intrinsics::Vector256<T> vector);
public static T ToScalar<T>(this System.Runtime.Intrinsics.Vector256<T> vector);
public static T ToScalar<T>(this System.Runtime.Intrinsics.Vector256<T> vector) where T : struct;
static member ToScalar : System.Runtime.Intrinsics.Vector256<'T> -> 'T
static member ToScalar : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> -> 'T (requires 'T : struct)
<Extension()>
Public Function ToScalar(Of T) (vector As Vector256(Of T)) As T
<Extension()>
Public Function ToScalar(Of T As Structure) (vector As Vector256(Of T)) As T
Paramètres de type
- T
Type du vecteur d’entrée.
Paramètres
- vector
- Vector256<T>
Vecteur à partir duquel obtenir le premier élément.
Retours
Scalaire qui contient la valeur du premier élément.
Exceptions
Le type de vector (T) n’est pas pris en charge.