Package org.ojalgo.matrix.task.iterative
Class IterativeSolverTask
java.lang.Object
org.ojalgo.matrix.task.iterative.IterativeSolverTask
- All Implemented Interfaces:
MatrixTask<Double>
,SolverTask<Double>
- Direct Known Subclasses:
KrylovSubspaceSolver
,MutableSolver
,StationaryIterativeSolver
For solving very large sparse equation systems – [A][x]=[b].
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static interface
Nested classes/interfaces inherited from interface org.ojalgo.matrix.task.SolverTask
SolverTask.Factory<N extends Comparable<N>>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final NumberContext
private NumberContext
private BasicLogger
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
protected final NumberContext
protected final int
protected final boolean
final PhysicalStore
<Double> preallocate
(Structure2D templateBody, Structure2D templateRHS) Will create a PhysicalStore instance suitable for use withSolverTask.solve(Access2D, Access2D, PhysicalStore)
.protected void
setAccuracyContext
(NumberContext accuracyContext) protected void
setDebugPrinter
(BasicLogger debugPrinter) protected void
setIterationsLimit
(int iterationsLimit) final Optional
<MatrixStore<Double>> solve
(MatrixStore<Double> body, MatrixStore<Double> rhs) toListOfRows
(Access2D<?> body, Access2D<?> rhs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.matrix.task.SolverTask
preallocate, solve, solve, toSolutionProvider
-
Field Details
-
DEFAULT
-
myAccuracyContext
-
myDebugPrinter
-
myIterationsLimit
private int myIterationsLimit
-
-
Constructor Details
-
IterativeSolverTask
IterativeSolverTask()
-
-
Method Details
-
toListOfRows
-
configurator
-
preallocate
Description copied from interface:SolverTask
Will create a PhysicalStore instance suitable for use with
SolverTask.solve(Access2D, Access2D, PhysicalStore)
. The dimensions of the returned instance is not specified by this interface - it is specified by the behaviour/requirements of each implementation.When solving an equation system [A][X]=[B] ([mxn][nxb]=[mxb]) the preallocated memory/matrix will typically be either mxb or nxb.
- Specified by:
preallocate
in interfaceSolverTask<Double>
-
solve
-
debug
-
getAccuracyContext
-
getIterationsLimit
protected final int getIterationsLimit() -
isDebugPrinterSet
protected final boolean isDebugPrinterSet() -
setAccuracyContext
-
setDebugPrinter
-
setIterationsLimit
protected void setIterationsLimit(int iterationsLimit)
-