![](../icons/Help.png) | NMathFunctionsSum(FloatVector) Method |
Calculates the sum of a given vector's elements.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic static float Sum(
FloatVector v
)
Public Shared Function Sum (
v As FloatVector
) As Single
public:
static float Sum(
FloatVector^ v
)
static member Sum :
v : FloatVector -> float32
Parameters
- v FloatVector
- A vector.
Return Value
SingleThe sum.
Remarkssum = v[0] + v[1] + v[2]... + v[n]
See Also