|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.factorization.triangle.LU
public class LU
LU decomposition of a matrix.
It decomposes an n x n matrix A so that
P %*% A == L %*% U
where
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 matrixThat is,
P.multiply(A) == L.multiply(U)
This decomposition can be used to
| Nested Class Summary | |
|---|---|
static class |
LU.Method
the methods available to do the LU decomposition |
| Constructor Summary | |
|---|---|
LU(Matrix A)
Construct an instance of the LU decomposition. |
|
LU(Matrix A,
LU.Method method,
double epsilon)
Construct an instance of the LU decomposition that uses Gaussian Elimination. |
|
| Method Summary | |
|---|---|
LowerTriangularMatrix |
L()
Get a copy of the lower triangular matrix L as in
P %*% A == L %*% U |
PermutationMatrix |
P()
Get a copy of the permutation matrix P as in
P %*% A == L %*% U |
UpperTriangularMatrix |
U()
Get a copy of the upper triangular matrix U as in
P %*% A == L %*% U |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LU(Matrix A,
LU.Method method,
double epsilon)
A - the matrix to be decomposed such that P %*% A == L %*% Umethod - the algorithm to do the LU decompositionepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0public LU(Matrix A)
A - a matrix| Method Detail |
|---|
public LowerTriangularMatrix L()
LUDecompositionL as in
P %*% A == L %*% U
L in interface LUDecompositionLpublic UpperTriangularMatrix U()
LUDecompositionU as in
P %*% A == L %*% U
U in interface LUDecompositionUpublic PermutationMatrix P()
LUDecompositionP as in
P %*% A == L %*% U
P in interface LUDecompositionP
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||