class="resources"
Performs the LU factorization of A. You can use this polymorphic VI to perform the LU factorization of a real square matrix or a complex square matrix. The data type you wire to the A input determines the polymorphic instance to use. Details Example

![]() |
A is a square real matrix. |
![]() |
L is a lower triangular matrix. |
![]() |
U is an upper triangular matrix. |
![]() |
P is a permutation 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. |

![]() |
A is a square complex matrix. |
![]() |
L is a complex, lower triangular matrix. |
![]() |
U is a complex, upper triangular matrix. |
![]() |
P is a permutation 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. |
The LU Factorization VI factors the square matrix A into the following types of matrixes so that PA=LU:
For a singular matrix, the VI completes the factorization and returns a warning, and there is at least one zero at the diagonal of U. Factorization serves as a key step for inverting a matrix, computing the determinant of a matrix, and solving a linear equation.
Refer to the Linear Algebra Calculator VI in the labview\examples\analysis\linaxmpl.llb directory for an example of using the LU Factorization VI.