Class SSORPreconditioner
java.lang.Object
org.ojalgo.matrix.task.iterative.SSORPreconditioner
- All Implemented Interfaces:
Preconditioner
Symmetric Successive Over-Relaxation (SSOR) preconditioner with relaxation factor omega (ω).
For ω = 1 this reduces to a symmetric Gauss–Seidel (forward + backward) sweep – a common choice for SPD systems with suitable variable ordering.
The applied effect is an approximate M^{-1} with the classic form (D/ω + L) D^{-1} (D/ω + U) scaled by (2 - ω)/ω, implemented via forward and backward triangular sweeps.
Compatibility and guidance
- Symmetric by construction; typically positive-definite for SPD A when 0 invalid input: '<' ω invalid input: '<' 2.
- Useful for methods that expect a symmetric (often SPD) preconditioner.
- Can be used as a right-preconditioner in methods for general nonsymmetric systems where symmetry of M is acceptable or desired.
- Stationary fixed-point methods that ignore preconditioners will not use this.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate R064Storeprivate intprivate doubleprivate R064Storeprivate R064StoreFields inherited from interface Preconditioner
IDENTITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Preconditioner
applyTranspose
-
Field Details
-
myOmega
private double myOmega -
myDiag
-
myWorkY
-
myWorkZ
-
myEquations
-
myDim
private int myDim
-
-
Constructor Details
-
SSORPreconditioner
public SSORPreconditioner()
-
-
Method Details
-
apply
Description copied from interface:PreconditionerApply M^{-1} to a vector. src and dst may alias.- Specified by:
applyin interfacePreconditioner
-
omega
-
prepare
Description copied from interface:PreconditionerPrepare internal structures for a specific system. Implementations may analyse sparsity or extract diagonals/factors here.- Specified by:
preparein interfacePreconditioner- Parameters:
equations- The active set of rows constituting the system body.dimension- The vector dimension (number of variables / size of solution vector).
-