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()
LUDecomposition
L
in interface LUDecomposition
public UpperTriangularMatrix U()
LUDecomposition
U
in interface LUDecomposition
public PermutationMatrix P()
LUDecomposition
P
in interface LUDecomposition
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.