Matrix Condition Number VI

Owning Palette: Linear Algebra VIs

Requires: Full Development System

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.

Details  Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Real Matrix Condition Number

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 indicates what type of norm is used to compute the condition number. Refer to the Matrix Norm VI for a definition of a matrix norm.

02-norm (default)
11-norm
2F-norm
3inf-norm
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 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.

Complex Matrix Condition Number

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 indicates what type of norm is used to compute the condition number. Refer to the Matrix Norm VI for a definition of a matrix norm.

02-norm (default)
11-norm
2F-norm
3inf-norm
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 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.

Matrix Condition Number Details

condition number defines c as the following equation:

c = ||A||p||A–1||p

where ||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.

Example

Refer to the Linear Algebra Calculator VI in the labview\examples\Mathematics\Linear Algebra directory for an example of using the Matrix Condition Number VI.

 Open example  Find related examples