- java.lang.Object
-
- org.ojalgo.matrix.task.iterative.IterativeSolverTask
-
- org.ojalgo.matrix.task.iterative.JacobiSolver
-
- All Implemented Interfaces:
MatrixTask<java.lang.Double>,SolverTask<java.lang.Double>
public final class JacobiSolver extends IterativeSolverTask
Stationary Jacobi iteration for solving [A][x]=[b] with non-zero diagonal entries.Convergence
- Converges for strictly diagonally dominant systems and for SPD matrices under suitable conditions.
- Updates are fully synchronous (per-iteration), making it straightforward to parallelise across rows.
- Ignores any configured
Preconditioner; use the relaxation factor to control convergence speed.
- As a simple baseline or where synchronous updates and trivial parallelism are desirable.
- When sequential in-place coupling is acceptable and faster convergence is needed, an in-place stationary method may be preferable.
- For large SPD problems needing faster/robuster convergence, Krylov methods often perform better.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ojalgo.matrix.task.iterative.IterativeSolverTask
IterativeSolverTask.Configurator
-
Nested classes/interfaces inherited from interface org.ojalgo.matrix.task.SolverTask
SolverTask.Factory<N extends java.lang.Comparable<N>>
-
-
Field Summary
Fields Modifier and Type Field Description private R064StoremyIncrement-
Fields inherited from class org.ojalgo.matrix.task.iterative.IterativeSolverTask
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description JacobiSolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleresolve(java.util.List<Equation> equations, PhysicalStore<java.lang.Double> solution)-
Methods inherited from class org.ojalgo.matrix.task.iterative.IterativeSolverTask
configurator, debug, getAccuracyContext, getIterationsLimit, getPreconditioner, getRelaxationFactor, isDebugPrinterSet, preallocate, resolve, setAccuracyContext, setDebugPrinter, setIterationsLimit, setPreconditioner, setRelaxationFactor, solve, solve, toListOfRows, worker
-
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, toSolutionProvider
-
-
-
-
Field Detail
-
myIncrement
private transient R064Store myIncrement
-
-
Method Detail
-
resolve
public double resolve(java.util.List<Equation> equations, PhysicalStore<java.lang.Double> solution)
- Specified by:
resolvein classIterativeSolverTask
-
-