public class GaussianElimination4SquareMatrix extends Object implements LUDecomposition
GaussianElimination but applies only to square matrices.| Constructor and Description |
|---|
GaussianElimination4SquareMatrix(Matrix A)
Run the Gaussian elimination algorithm on a square matrix.
|
GaussianElimination4SquareMatrix(Matrix A,
double epsilon)
Run the Gaussian elimination algorithm 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 GaussianElimination4SquareMatrix(Matrix A, double epsilon)
A - a square matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0IllegalArgumentException - if A is not squarepublic GaussianElimination4SquareMatrix(Matrix A)
A - a square matrixIllegalArgumentException - if A is not squarepublic 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.