WOLFRAM SYSTEM MODELER
normReturn the p-norm of a matrix |
SystemModel["Modelica.Math.Matrices.norm"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Matrices.norm(A); Matrices.norm(A, p=2);
The function call "Matrices.norm(A)
" returns the
2-norm of matrix A, i.e., the largest singular value of A.
The function call "Matrices.norm(A, p)
" returns the
p-norm of matrix A. The only allowed values for p are
Note, for any matrices A1, A2 the following inequality holds:
Matrices.norm(A1+A2,p) ≤ Matrices.norm(A1,p) + Matrices.norm(A2,p)
Note, for any matrix A and vector v the following inequality holds:
Vectors.norm(A*v,p) ≤ Matrices.norm(A,p)*Vectors.norm(A,p)
A |
Type: Real[:,:] Description: Input matrix |
---|---|
p |
Default Value: 2 Type: Real Description: Type of p-norm (only allowed: 1, 2 or Modelica.Constants.inf) |
result |
Default Value: 0.0 Type: Real Description: p-norm of matrix A |
---|