Vector::SumOfSquares Method

Overload List

#SignatureDescription
1double SumOfSquares() const;Calculate the Sum of squares of the calling vector.
2double SumOfSquares(int Index, int Len) const;Calculates the sum of squares from the calling vector elements [Index]..[Index+Len-1].

Overload 1: double SumOfSquares() const;

Calculate the Sum of squares of the calling vector.

Remarks:

For complex numbers, the routine computes the squared L2 norm.

SumOfSquares = sum | a[i] |^2, 0 < i < Length-1

See Also: Vector::NormL2
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: double SumOfSquares(int Index, int Len) const;

Calculates the sum of squares from the calling vector elements [Index]..[Index+Len-1].

#NameTypeDescription
1Indexint
2Lenint
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler