Class JacobiPreconditioner
java.lang.Object
org.ojalgo.matrix.task.iterative.JacobiPreconditioner
- All Implemented Interfaces:
Preconditioner
Simple diagonal (Jacobi) preconditioner: M = diag(A), apply M^{-1} x = x ./ diag(A).
Compatibility
- Well-suited as a lightweight, symmetry-preserving choice for methods that benefit from SPD preconditioning when A has positive diagonal entries.
- Usable as a right-preconditioner in methods for general nonsymmetric systems where a transpose action equals the forward action.
- Ignored by stationary fixed-point methods that do not use preconditioners.
-
Field Summary
FieldsFields 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
-
myInvDiag
-
-
Constructor Details
-
JacobiPreconditioner
public JacobiPreconditioner()
-
-
Method Details
-
apply
Description copied from interface:PreconditionerApply M^{-1} to a vector. src and dst may alias.- Specified by:
applyin interfacePreconditioner
-
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).
-