public class SparseDoubleKLUDecomposition extends Object implements SparseDoubleLUDecomposition
| Constructor and Description |
|---|
SparseDoubleKLUDecomposition(DoubleMatrix2D A,
int order,
boolean checkIfSingular) |
SparseDoubleKLUDecomposition(DoubleMatrix2D A,
int order,
boolean checkIfSingular,
boolean preOrder)
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.ufl.cise.klu.common.KLU_symbolic |
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 SparseDoubleKLUDecomposition(DoubleMatrix2D A, int order, boolean checkIfSingular, boolean preOrder)
A - Square matrixorder - ordering option (0 to 1); 0: AMD, 1: COLAMDcheckIfSingular - if true, then the singularity test (based on
BTFJ) is performed.preOrder - use BTF pre-ordering, or notIllegalArgumentException - if A is not square or is not sparse.IllegalArgumentException - if order is not in [0,1]public SparseDoubleKLUDecomposition(DoubleMatrix2D A, int order, boolean checkIfSingular)
public double det()
SparseDoubleLUDecompositiondet in interface SparseDoubleLUDecompositionpublic DoubleMatrix2D getL()
SparseDoubleLUDecompositiongetL in interface SparseDoubleLUDecompositionpublic int[] getPivot()
SparseDoubleLUDecompositiongetPivot in interface SparseDoubleLUDecompositionpublic DoubleMatrix2D getU()
SparseDoubleLUDecompositiongetU in interface SparseDoubleLUDecompositionpublic edu.ufl.cise.klu.common.KLU_symbolic getSymbolicAnalysis()
SparseDoubleLUDecompositiongetSymbolicAnalysis in interface SparseDoubleLUDecompositionpublic boolean isNonsingular()
SparseDoubleLUDecompositionisNonsingular in interface SparseDoubleLUDecompositionpublic void solve(DoubleMatrix1D b)
SparseDoubleLUDecompositionsolve in interface SparseDoubleLUDecompositionb - A vector with of size A.rows();Jump to the Parallel Colt Homepage