Prototypes | Header File(s) | |
double |
frobNorm(const RWMathVec<double>&) |
<rw/math/mathvec.h> |
float |
frobNorm(const RWMathVec<float>&) |
<rw/math/mathvec.h> |
double |
frobNorm(const RWMathVec<DComplex>&) |
<rw/math/mathvec.h> |
double |
frobNorm(const RWGenMat<double>&) |
<rw/math/genmat.h> |
float |
frobNorm(const RWGenMat<float>&) |
<rw/math/genmat.h> |
double |
frobNorm(const RWGenMat<DComplex>&) |
<rw/math/genmat.h> |
double |
frobNorm(const RWMathArray<double>&) |
<rw/math/mtharray.h> |
float |
frobNorm(const RWMathArray<float>&) |
<rw/math/mtharray.h> |
double |
frobNorm(const RWMathArray<DComplex>&) |
<rw/math/mtharray.h> |
Computes the Frobenius norm, which is the square root of the sum of squares of its entries. For a vector, the formula is:
For a matrix, the formula is:
For an array with n dimensions, the formula is: