public class LU extends Object implements LUDecomposition
P.multiply(A) == L.multiply(U)
| Constructor and Description |
|---|
LU(Matrix A)
Run the LU decomposition on a square matrix.
|
LU(Matrix A,
double epsilon)
Run the LU decomposition on a square matrix.
|
| 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.
|
public LU(Matrix A, double epsilon)
A - a square matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0public LU(Matrix A)
A - a matrixpublic LowerTriangularMatrix L()
LUDecompositionL in interface LUDecompositionpublic UpperTriangularMatrix U()
LUDecompositionU in interface LUDecompositionpublic PermutationMatrix P()
LUDecompositionP in interface LUDecompositionCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.