class="resources" LU Factorization (Not in Base Package) - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

LU Factorization (Not in Base Package)

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

Real LU Factorization

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.

Complex LU Factorization

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.

LU Factorization Details

The LU Factorization VI factors the square matrix A into the following types of matrixes so that PA=LU:

  • L is a lower triangular matrix with ones on the diagonal.
  • U is an upper triangular matrix.
  • P is a permutation matrix, which serves as the identity matrix with some rows exchanged.

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.

Example

Refer to the Linear Algebra Calculator VI in the labview\examples\analysis\linaxmpl.llb directory for an example of using the LU Factorization VI.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit