You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TDenseMtxVec Class > public > SumOfSquares Method > TDenseMtxVec.SumOfSquares Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TDenseMtxVec.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!