Class MatrixIterationMonitor

  • All Implemented Interfaces:
    IterationMonitor

    public class MatrixIterationMonitor
    extends DefaultIterationMonitor
    Iteration monitor based on matrix norms. Extends the default linear iteration object to compare with the norm of the system matrix and the right hand side. Can often be a better convergence criteria than the default, but requires the computation of the matrix norm.
    • Constructor Detail

      • MatrixIterationMonitor

        public MatrixIterationMonitor​(double normA,
                                      double normb,
                                      int maxIter,
                                      double rtol,
                                      double atol,
                                      double dtol)
        Constructor for MatrixIterationMonitor
        Parameters:
        normA - Norm of the matrix A
        normb - Norm of the vector b
        maxIter - Maximum number of iterations
        rtol - Relative convergence tolerance (to initial residual)
        atol - Absolute convergence tolerance
        dtol - Relative divergence tolerance (to initial residual)
      • MatrixIterationMonitor

        public MatrixIterationMonitor​(double normA,
                                      double normb)
        Constructor for MatrixIterationMonitor. Default is 100000 iterations at most, relative tolerance of 1e-5, absolute tolerance of 1e-50 and a divergence tolerance of 1e+5.