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
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,:] | A | Input matrix |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | result | Frobenius norm of matrix A |
Revisions
- 2010/05/31 by Marcus Baur, DLR-RM