Matrix Rank VI

Owning Palette: Linear Algebra VIs

Requires: Full Development System

Computes the rank of Input Matrix. Wire data to the Input Matrix input to determine the polymorphic instance to use or manually select the instance.

Example

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

 Add to the block diagram  Find on the palette

Real Matrix Rank

Input Matrix must be a real matrix.
tolerance defines a level such that the number of singular values greater than this level is the rank of Input Matrix. The default is –1. If tolerance is negative, the internal tolerance used to determine rank is set as shown in the following equation.

tolerance = max(m,n)*||A||*,

where A represents the Input Matrix, m represents the number of rows in A, n represents the number of columns in A, ||A|| is the 2-norm of A, is the smallest, floating point number that can be represented by type double, as shown in the following relationship.

= 2–52 = 2.22e – 16

rank is the number of singular values in the Input Matrix that are larger than the tolerance. rank is the maximum number of independent rows or columns in the 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 Rank

Input Matrix is a complex matrix.
tolerance defines a level such that the number of singular values greater than this level is the rank of Input Matrix. The default is –1. If tolerance is negative, the internal tolerance used to determine rank is set as shown in the following equation.

tolerance = max(m,n)*||A||*,

where A represents the Input Matrix, m represents the number of rows in A, n represents the number of columns in A, ||A|| is the 2-norm of A, is the smallest, floating point number that can be represented by type double, as shown in the following relationship.

= 2–52 = 2.22e – 16

rank is the number of singular values in the Input Matrix that are larger than the tolerance. rank is the maximum number of independent rows or columns in the 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.

Example

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

 Open example  Find related examples