functionfrobeniusNorm

Return the Frobenius norm of a matrix

Extends from Modelica.Icons.Function (Icon for functions).

Information

Syntax

r = Matrices.frobeniusNorm(A);

Description

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.

Example

A = [1, 2;
     2, 1];
r = frobeniusNorm(A);

results in:

r = 3.162;

See also

Matrices.norm

Inputs

TypeNameDefaultDescription
Real[:,:]AInput matrix

Outputs

TypeNameDefaultDescription
RealresultFrobenius norm of matrix A

Revisions

  • 2010/05/31 by Marcus Baur, DLR-RM