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

Calculate the Sum of squares of the calling vector.

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!