Vector.Sum<T>(Vector<T>) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the sum of all the elements inside the specified vector.
public:
generic <typename T>
static T Sum(System::Numerics::Vector<T> value);
public:
generic <typename T>
where T : value class static T Sum(System::Numerics::Vector<T> value);
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;
static member Sum : System.Numerics.Vector<'T> -> 'T
static member Sum : System.Numerics.Vector<'T (requires 'T : struct)> -> 'T (requires 'T : struct)
Public Function Sum(Of T) (value As Vector(Of T)) As T
Public Function Sum(Of T As Structure) (value As Vector(Of T)) As T
- T
The type of the elements to sum..
- value
- Vector<T>
A vector containing the objects of type T
to sum.
T
The sum of all elements inside the vector.
Производ | Верзије |
---|---|
.NET | 6, 7, 8, 9, 10 |
Сарађујте са нама на GitHub-у
Извор овог садржаја можете пронаћи на платформи GitHub, где можете и да креирате и прегледате проблеме и захтеве за повлачењем. Више информација потражите у нашем водичу за сараднике.
.NET повратне информације
.NET је пројекат отвореног кода. Изаберите везу да бисте обезбедили повратне информације: