Matrix.SumOfSquares Method

Double SumOfSquares

Calculate the Sum of squares of the calling Matrix.

Returns: Double

Remarks:

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

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

See Also: Matrix.NormL2

Indexed: Double SumOfSquares(Int32 Index, Int32 Len)

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

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

Returns: Double