java.lang.Object
org.ojalgo.matrix.task.iterative.IterativeSolverTask
org.ojalgo.matrix.task.iterative.GaussSeidelSolver
- All Implemented Interfaces:
MatrixTask<Double>,SolverTask<Double>
Stationary Gauss–Seidel iteration for solving [A][x]=[b] with non-zero diagonal entries.
Convergence
- Converges for strictly diagonally dominant systems and for symmetric positive-definite (SPD) matrices.
- Behaviour depends on ordering and scaling; preconditioning is not applied in this stationary method.
- Ignores any configured
Preconditioner; use the relaxation factor to control convergence speed.
When to use
- As a simple in-place fixed-point iteration when sequential updates are acceptable.
- Prefer over fully synchronous updates when in-place coupling improves convergence.
- For large SPD problems needing faster convergence, Krylov methods often perform better.
- If fully synchronous updates or trivial parallelism are required, consider a synchronous fixed-point method.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ojalgo.matrix.task.iterative.IterativeSolverTask
IterativeSolverTask.ConfiguratorNested classes/interfaces inherited from interface org.ojalgo.matrix.task.SolverTask
SolverTask.Factory<N extends Comparable<N>> -
Field Summary
Fields inherited from class org.ojalgo.matrix.task.iterative.IterativeSolverTask
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleresolve(List<Equation> equations, PhysicalStore<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, workerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ojalgo.matrix.task.SolverTask
preallocate, solve, toSolutionProvider
-
Constructor Details
-
GaussSeidelSolver
public GaussSeidelSolver()
-
-
Method Details
-
resolve
- Specified by:
resolvein classIterativeSolverTask
-