Vector128.Sum<T>(Vector128<T>) Metoda

Definice

Vypočítá součet všech prvků ve vektoru.

public:
generic <typename T>
 where T : value class static T Sum(System::Runtime::Intrinsics::Vector128<T> vector);
public:
generic <typename T>
 static T Sum(System::Runtime::Intrinsics::Vector128<T> vector);
public static T Sum<T> (System.Runtime.Intrinsics.Vector128<T> vector) where T : struct;
public static T Sum<T> (System.Runtime.Intrinsics.Vector128<T> vector);
static member Sum : System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> -> 'T (requires 'T : struct)
static member Sum : System.Runtime.Intrinsics.Vector128<'T> -> 'T
Public Function Sum(Of T As Structure) (vector As Vector128(Of T)) As T
Public Function Sum(Of T) (vector As Vector128(Of T)) As T

Parametry typu

T

Typ prvků ve vektoru.

Parametry

vector
Vector128<T>

Vektor, jehož prvky budou sečteny.

Návraty

T

Součet všech prvků v vectorsouboru .

Výjimky

Typ vector (T) není podporován.

Platí pro