frobeniusNormReturn the Frobenius norm of a matrix |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
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;
A |
Type: Real[:,:] Description: Input matrix |
---|
result |
Type: Real Description: Frobenius norm of matrix A |
---|