r = Matrices.frobeniusNorm(A);
This function computes the Frobenius norm of a general real matrix A, i.e., the square root of the sum of the squares of all elements.
A = [1, 2;
2, 1];
r = frobeniusNorm(A);
results in:
r = 3.162;
function frobeniusNorm extends Modelica.Icons.Function; input Real A[:, :] "Input matrix"; output Real result "Frobenius norm of matrix A"; end frobeniusNorm;