Package no.uib.cipr.matrix.sparse
Class OutputIterationReporter
- java.lang.Object
-
- no.uib.cipr.matrix.sparse.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, usingSystem.err.OutputIterationReporter(java.io.OutputStream out)Constructor for OutputIterationReporter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmonitor(double r, int i)Registers current informationvoidmonitor(double r, Vector x, int i)Registers current information
-
-
-
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, usingSystem.err.
-
-
Method Detail
-
monitor
public void monitor(double r, int i)Description copied from interface:IterationReporterRegisters current information- Specified by:
monitorin interfaceIterationReporter- Parameters:
r- Current residual normi- Current iteration number
-
monitor
public void monitor(double r, Vector x, int i)Description copied from interface:IterationReporterRegisters current information- Specified by:
monitorin interfaceIterationReporter- Parameters:
r- Current residual normx- Current state vectori- Current iteration number
-
-