Class OutputIterationReporter

  • All Implemented Interfaces:
    IterationReporter

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

      Constructors 
      Constructor Description
      OutputIterationReporter()
      Constructor for OutputIterationReporter, using System.err.
      OutputIterationReporter​(java.io.OutputStream out)
      Constructor for OutputIterationReporter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void monitor​(double r, int i)
      Registers current information
      void monitor​(double r, Vector x, int i)
      Registers current information
      • Methods inherited from class java.lang.Object

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

      • OutputIterationReporter

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

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

      • 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