You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TDenseMtxVec Class > TDenseMtxVec Methods > SumOfSquares Method > TDenseMtxVec.SumOfSquares Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TDenseMtxVec.SumOfSquares Method ()

Calculate the Sum of squares of the calling vector.

Syntax
C#
Visual Basic
public double SumOfSquares();

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

SumOfSquares = Sum(|a[i]|^2) , 0 < i < Length-1.

Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!