Real Matrix Condition Number VI
- Updated2025-07-30
- 2 minute(s) read
Computes the condition number of Input Matrix. Wire data to the Input Matrix input to determine the polymorphic instance to use or manually select the instance.

Inputs/Outputs
Input Matrix
—
Input Matrix can be a rectangular matrix when norm type is 2-norm. If norm type is not 2-norm, Input Matrix must be a square matrix.
norm type
—
norm type indicates what type of norm is used to compute the condition number.
condition number
—
condition number is the calculated condition number for a given norm. For the 2-norm, the condition number is the ratio of the largest singular value of Input Matrix to the smallest singular value of Input Matrix.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
condition number defines c as the following equation:
c = ||A||p||A–1||pwhere ||A||p is the norm of Input Matrix. Different values of p define the different types of norms, therefore p defines different types of computations of condition numbers.
For the 2-norm condition number, c is the ratio of the largest, singular value of A to the smallest, singular value of A.
The condition number of a matrix measures the sensitivity of a system solution of linear equations to errors in the data. It gives an indication of the accuracy of the results from a matrix inversion and a linear equation solution.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Linear Algebra\Linear Algebra Calculator.vi
Input Matrix
—
norm type
—
condition number
—
error
—