TMtx::SumOfSquares Method

Overload List

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

Overload 1: double SumOfSquares();

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: TMtx::NormL2
Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

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

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