Class OutputIterationReporter

java.lang.Object
no.uib.cipr.matrix.sparse.OutputIterationReporter
All Implemented Interfaces:
IterationReporter

public class OutputIterationReporter extends Object implements IterationReporter
Outputs iteration information to an output stream.
  • Constructor Details

    • OutputIterationReporter

      public OutputIterationReporter(OutputStream out)
      Constructor for OutputIterationReporter
      Parameters:
      out - Writes iteration count and current residual here
    • OutputIterationReporter

      public OutputIterationReporter()
      Constructor for OutputIterationReporter, using System.err.
  • Method Details

    • monitor

      public void monitor(double r, int i)
      Description copied from interface: IterationReporter
      Registers current information
      Specified by:
      monitor in interface IterationReporter
      Parameters:
      r - Current residual norm
      i - Current iteration number
    • monitor

      public void monitor(double r, Vector x, int i)
      Description copied from interface: IterationReporter
      Registers current information
      Specified by:
      monitor in interface IterationReporter
      Parameters:
      r - Current residual norm
      x - Current state vector
      i - Current iteration number