public class DenseLU
extends java.lang.Object
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
|
DenseMatrix |
getLU()
Returns the decomposition 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 UnitLowerTriangDenseMatrix getL()
public UpperTriangDenseMatrix getU()
public DenseMatrix getLU()
public double rcond(Matrix A, Matrix.Norm norm)
A
- The matrix this is a decomposition ofnorm
- Either Norm.One
or Norm.Infinity
public int[] getPivots()
public boolean isSingular()
public DenseMatrix solve(DenseMatrix B) throws MatrixSingularException
A\B
, overwriting B
MatrixSingularException
public DenseMatrix transSolve(DenseMatrix B) throws MatrixSingularException
AT\B
, overwriting B
MatrixSingularException