public class CSparseDoubleLUDecomposition extends Object implements SparseDoubleLUDecomposition
Constructor and Description |
---|
CSparseDoubleLUDecomposition(DoubleMatrix2D A,
int order,
boolean checkIfSingular)
Constructs and returns a new LU Decomposition object; The decomposed
matrices can be retrieved via instance methods of the returned
decomposition object.
|
Modifier and Type | Method and Description |
---|---|
double |
det()
Returns the determinant, det(A).
|
DoubleMatrix2D |
getL()
Returns the lower triangular factor, L.
|
int[] |
getPivot()
Returns a copy of the pivot permutation vector.
|
edu.emory.mathcs.csparsej.tdouble.Dcs_common.Dcss |
getSymbolicAnalysis()
Returns a copy of the symbolic LU analysis object
|
DoubleMatrix2D |
getU()
Returns the upper triangular factor, U.
|
boolean |
isNonsingular()
Returns whether the matrix is nonsingular (has an inverse).
|
void |
solve(DoubleMatrix1D b)
Solves A*x = b(in-place).
|
public CSparseDoubleLUDecomposition(DoubleMatrix2D A, int order, boolean checkIfSingular)
A
- Square matrixorder
- ordering option (0 to 3); 0: natural ordering, 1: amd(A+A'),
2: amd(S'*S), 3: amd(A'*A)checkIfSingular
- if true, then the singularity test (based on
Dulmage-Mendelsohn decomposition) is performed.IllegalArgumentException
- if A is not square or is not sparse.IllegalArgumentException
- if order is not in [0,3]public double det()
SparseDoubleLUDecomposition
det
in interface SparseDoubleLUDecomposition
public DoubleMatrix2D getL()
SparseDoubleLUDecomposition
getL
in interface SparseDoubleLUDecomposition
public int[] getPivot()
SparseDoubleLUDecomposition
getPivot
in interface SparseDoubleLUDecomposition
public DoubleMatrix2D getU()
SparseDoubleLUDecomposition
getU
in interface SparseDoubleLUDecomposition
public edu.emory.mathcs.csparsej.tdouble.Dcs_common.Dcss getSymbolicAnalysis()
SparseDoubleLUDecomposition
getSymbolicAnalysis
in interface SparseDoubleLUDecomposition
public boolean isNonsingular()
SparseDoubleLUDecomposition
isNonsingular
in interface SparseDoubleLUDecomposition
public void solve(DoubleMatrix1D b)
SparseDoubleLUDecomposition
solve
in interface SparseDoubleLUDecomposition
b
- A vector with of size A.rows();Jump to the Parallel Colt Homepage