# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.algebra.linear.matrix.doubles.factorization.triangle

## Interface LUDecomposition

• All Known Implementing Classes:
Doolittle, GaussianElimination4SquareMatrix, LU

public interface LUDecomposition
LU decomposition decomposes an n x n matrix A so that P * A = L * U. P is an n x n permutation matrix. L is an n x n lower triangular matrix. U is an n x n upper triangular matrix. That is,

P.multiply(A) == L.multiply(U)

Wikipedia: LU decomposition
• ### Method Summary

All Methods
Modifier and Type Method and Description
LowerTriangularMatrix L()
Get the lower triangular matrix L as in the LU decomposition.
PermutationMatrix P()
Get the permutation matrix P as in P * A = L * U.
UpperTriangularMatrix U()
Get the upper triangular matrix U as in the LU decomposition.
• ### Method Detail

• #### L

LowerTriangularMatrix L()
Get the lower triangular matrix L as in the LU decomposition.
Returns:
L
• #### U

UpperTriangularMatrix U()
Get the upper triangular matrix U as in the LU decomposition.
Returns:
U
• #### P

PermutationMatrix P()
Get the permutation matrix P as in P * A = L * U.
Returns:
P