Calculates the sum of the L1 norms of a given vector's elements.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static double AbsSum( DoubleComplexVector v ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function AbsSum ( _ v As DoubleComplexVector _ ) As Double |
| Visual C++ |
|---|
public: static double AbsSum( DoubleComplexVector^ v ) |
Parameters
- v
- Type: CenterSpace.NMath.Core..::.DoubleComplexVector
A vector.
Return Value
The absolute sum.
Remarks
sum = |v[0]| + |v[1]| ... |v[i]|, where
|v[i]| is the sum of the magnitudes of the real and
imaginary parts of v[i].