You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > SumOfSquares Method > Matrix.SumOfSquares Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.SumOfSquares Method ()

Calculate the Sum of squares of the calling Matrix.

Pascal
function SumOfSquares: double; overload;

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

 

SumOfSquares = Sum(|a[i]|^2) , 0 < i < Length-1
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!