Class DefaultIterationMonitor

java.lang.Object
no.uib.cipr.matrix.sparse.AbstractIterationMonitor
no.uib.cipr.matrix.sparse.DefaultIterationMonitor
All Implemented Interfaces:
IterationMonitor
Direct Known Subclasses:
MatrixIterationMonitor

public class DefaultIterationMonitor extends AbstractIterationMonitor
Default iteration monitor. This tester checks declares convergence if the absolute value of the residual norm is sufficiently small, or if the relative decrease is small. Divergence is decleared if too many iterations are spent, or the residual has grown too much. NaNs will also cause divergence to be flagged.
  • Constructor Details

    • DefaultIterationMonitor

      public DefaultIterationMonitor(int maxIter, double rtol, double atol, double dtol)
      Constructor for DefaultIterationMonitor
      Parameters:
      maxIter - Maximum number of iterations
      rtol - Relative convergence tolerance (to initial residual)
      atol - Absolute convergence tolerance
      dtol - Relative divergence tolerance (to initial residual)
    • DefaultIterationMonitor

      public DefaultIterationMonitor()
      Constructor for DefaultIterationMonitor. Default is 100000 iterations at most, relative tolerance of 1e-5, absolute tolerance of 1e-50 and a divergence tolerance of 1e+5.
  • Method Details