Package org.ejml.interfaces.linsol
Interface LinearSolverSparse<S extends Matrix,D extends Matrix>
-
- All Superinterfaces:
LinearSolver<S,D>
- All Known Implementing Classes:
LinearSolverSparseSafe,LinearSolverToSparse
public interface LinearSolverSparse<S extends Matrix,D extends Matrix> extends LinearSolver<S,D>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisStructureLocked()Checks to see if the structure is locked.voidsetStructureLocked(boolean locked)Save results from structural analysis step.voidsolveSparse(S B, S X)Solve against sparse matrices.-
Methods inherited from interface org.ejml.interfaces.linsol.LinearSolver
getDecomposition, modifiesA, modifiesB, quality, setA, solve
-
-
-
-
Method Detail
-
solveSparse
void solveSparse(S B, S X)
Solve against sparse matrices. A*X=B. In most situations its more desirable to solve against a dense matrix because of fill in.- Parameters:
B- Input. Never modified.X- Output. Never modified.
-
setStructureLocked
void setStructureLocked(boolean locked)
Save results from structural analysis step. This can reduce computations of a matrix with the exactly same non-zero pattern is decomposed in the future. If a matrix has yet to be processed then the structure of the next matrix is saved. If a matrix has already been processed then the structure of the most recently processed matrix will be saved.
-
isStructureLocked
boolean isStructureLocked()
Checks to see if the structure is locked.- Returns:
- true if locked or false if not locked.
-
-