Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


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

Definition

Returns the sum of all the elements inside the specified vector.

C#
public static T Sum<T>(System.Numerics.Vector<T> value);
C#
public static T Sum<T>(System.Numerics.Vector<T> value) where T : struct;

Type Parameters

T

The type of the elements to sum..

Parameters

value
Vector<T>

A vector containing the objects of type T to sum.

Returns

T

The sum of all elements inside the vector.

Applies to

Termék Verziók
.NET 6, 7, 8, 9, 10