Muokkaa

Jaa


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

Definition

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

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

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