Calculates the sum of the absolute value of a given vector's elements.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static float AbsSum(
	FloatVector v
)
Visual Basic (Declaration)
Public Shared Function AbsSum ( _
	v As FloatVector _
) As Single
Visual C++
public:
static float AbsSum(
	FloatVector^ v
)

Parameters

v
Type: CenterSpace.NMath.Core..::.FloatVector
A vector.

Return Value

The sum of the absolute value of the elements in v.

Remarks

sum = abs(v[0]) + abs(v[1]) + abs(v[2])...

See Also