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.


icon

Inputs/Outputs

  • c2ddbl.png Input Matrix

    Input Matrix must be a square real matrix.

  • cenum.png matrix type

    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.

    0
    General
    (default)
    1
    Positive definite
    2
    Lower triangular
    3
    Upper triangular
  • idbl.png determinant

    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.
  • ii32.png 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.

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

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Linear Algebra\Linear Algebra Calculator.vi