function SumOfSquares: Double;
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: function SumOfSquares(Index: Integer; Len: Integer): Double;
Calculates the sum of squares from the calling Matrix elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Returns: Double