Determinant VI

Owning Palette: Linear Algebra VIs

Requires: Base Development System

Computes the determinant 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 Determinant

Input Matrix must be a square real matrix.
matrix type is the type of Input Matrix. Knowing the type of Input Matrix can speed up the computation of the determinant and can help you to avoid unnecessary computation, which could introduce numerical inaccuracy.

0General (default)
1Positive definite
2Lower triangular
3Upper triangular
determinant is a scalar value.
Note  The determinant of a singular matrix is zero. This is a valid result and is not an error, that is, |A|=0.0 if A is singular.
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 Determinant

Input Matrix must be a square complex matrix.
matrix type is the type of Input Matrix. Knowing the type of Input Matrix can speed up the computation of the determinant and can help you to avoid unnecessary computation, which could introduce numerical inaccuracy.

0General (default)
1Positive definite
2Lower triangular
3Upper triangular
determinant is a scalar value. The determinant of a singular matrix is zero. This is a valid result and is not an error, that is, |A| = 0.0 if A is singular.
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.

Determinant Details

Let A be a square matrix that represents the Input Matrix, and let L and U represent the lower and upper triangular matrices, respectively, of A such that

A = LU

where the main diagonal elements of the lower triangular matrix L are arbitrarily set to one. The VI finds the determinant of A by the product of the main diagonal elements of the upper triangular matrix U

where |A| is the determinant of X and n is the dimension of X.

Example

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

 Open example  Find related examples