Matrix::NormFro Method

double NormFro() const;

Calculates the matrix Frobenius norm.

Remarks:

Calculate the calling matrix Frobenius norm. The Frobenius norm is defined as the square root of the sum of sums of squared elements of rows. An exception is raised if calling matrix Matrix::Complex property is true.

Examples
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Matrix A;
    double b;

    A.SetIt(2, 2, false, DewArray<double>{1, 2, 2, 4}); // 2x2, not complex matrix
    b = A.NormFro();
}
See Also: Matrix::NormInf, Matrix::Norm1
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler