public class DenseLU extends Object
A = P * L * U.| Constructor and Description |
|---|
DenseLU(int m,
int n)
Constructor for DenseLU
|
| Modifier and Type | Method and Description |
|---|---|
DenseLU |
factor(DenseMatrix A)
Creates an LU decomposition of the given matrix
|
static DenseLU |
factorize(Matrix A)
Creates an LU decomposition of the given matrix
|
UnitLowerTriangDenseMatrix |
getL()
Returns the lower triangular factor
|
protected DenseMatrix |
getLU()
Returns the decomposition matrix
|
PermutationMatrix |
getP()
Returns the permutation matrix.
|
int[] |
getPivots()
Returns the row pivots
|
UpperTriangDenseMatrix |
getU()
Returns the upper triangular factor
|
boolean |
isSingular()
Checks for singularity
|
double |
rcond(Matrix A,
Matrix.Norm norm)
Computes the reciprocal condition number, using either the infinity norm
of the 1 norm.
|
DenseMatrix |
solve(DenseMatrix B)
Computes
A\B, overwriting B |
DenseMatrix |
transSolve(DenseMatrix B)
Computes
AT\B, overwriting B |
public DenseLU(int m,
int n)
m - Number of rowsn - Number of columnspublic static DenseLU factorize(Matrix A)
A - Matrix to decompose. Not modifiedpublic DenseLU factor(DenseMatrix A)
A - Matrix to decompose. Overwritten with the decompositionpublic PermutationMatrix getP()
public UnitLowerTriangDenseMatrix getL()
public UpperTriangDenseMatrix getU()
protected DenseMatrix getLU()
public double rcond(Matrix A, Matrix.Norm norm)
A - The matrix this is a decomposition ofnorm - Either Norm.One or Norm.Infinitypublic int[] getPivots()
public boolean isSingular()
public DenseMatrix solve(DenseMatrix B) throws MatrixSingularException
A\B, overwriting BMatrixSingularExceptionpublic DenseMatrix transSolve(DenseMatrix B) throws MatrixSingularException
AT\B, overwriting BMatrixSingularExceptionCopyright © 2015. All Rights Reserved.