Module ojalgo

Class IdentityPreconditioner

  • All Implemented Interfaces:
    Preconditioner

    final class IdentityPreconditioner
    extends java.lang.Object
    implements Preconditioner
    Identity (no-op) preconditioner.

    Characteristics and usage

    • Works with any iterative method and serves as a baseline when no preconditioning is desired.
    • Safe choice for methods that require symmetry/positive-definiteness of the preconditioner.
    • Often used to measure the effect of adding a non-trivial preconditioner.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(Access1D<java.lang.Double> src, PhysicalStore<java.lang.Double> dst)
      Apply M^{-1} to a vector.
      void prepare​(java.util.List<Equation> equations, int dimension)
      Prepare internal structures for a specific system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdentityPreconditioner

        IdentityPreconditioner()
    • Method Detail

      • prepare

        public void prepare​(java.util.List<Equation> equations,
                            int dimension)
        Description copied from interface: Preconditioner
        Prepare internal structures for a specific system. Implementations may analyse sparsity or extract diagonals/factors here.
        Specified by:
        prepare in interface Preconditioner
        Parameters:
        equations - The active set of rows constituting the system body.
        dimension - The vector dimension (number of variables / size of solution vector).