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

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

Syntax

C#
public static double AbsSum(
	DoubleSparseVector v
)
Visual Basic (Declaration)
Public Shared Function AbsSum ( _
	v As DoubleSparseVector _
) As Double
Visual C++
public:
static double AbsSum(
	DoubleSparseVector^ v
)

Parameters

v
Type: CenterSpace.NMath.Matrix..::.DoubleSparseVector
A sparse 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