Op Englesch liesen Editéieren

Deelen iwwer


Vector64.Sum<T>(Vector64<T>) Method

Definition

Computes the sum of all elements in a vector.

C#
public static T Sum<T>(System.Runtime.Intrinsics.Vector64<T> vector);
C#
public static T Sum<T>(System.Runtime.Intrinsics.Vector64<T> vector) where T : struct;

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector64<T>

The vector whose elements will be summed.

Returns

T

The sum of all elements in vector.

Exceptions

The type of vector (T) is not supported.

Applies to

Produkt Versiounen
.NET 7, 8, 9, 10