functionconditionNumber
Calculate the condition number norm(A)*norm(inv(A))
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
r = Matrices.conditionNumber(A);
Description
This function calculates the the condition number (norm(A) * norm(inv(A))) of a general real matrix A, in either the 1-norm, 2-norm or the infinity-norm. In the case of 2-norm the result is the ratio of the largest to the smallest singular value to A.
Example
A = [1, 2
2, 1];
r = conditionNumber(A);
results in:
r = 3.0