public abstract class AbstractDoubleIterationMonitor extends Object implements DoubleIterationMonitor
Constructor and Description |
---|
AbstractDoubleIterationMonitor()
Constructor for AbstractIterationMonitor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
converged(double r)
Checks for convergence
|
boolean |
converged(double r,
DoubleMatrix1D x)
Checks for convergence
|
boolean |
converged(DoubleMatrix1D r)
Checks for convergence
|
boolean |
converged(DoubleMatrix1D r,
DoubleMatrix1D x)
Checks for convergence
|
DoubleIterationReporter |
getIterationReporter()
Returns current iteration reporter
|
Norm |
getNormType()
Returns the vector-norm in use
|
boolean |
isFirst()
Returns true for the first iteration
|
int |
iterations()
Number of iterations performed
|
void |
next()
Increases iteration counter
|
double |
residual()
Returns current residual
|
void |
setFirst()
Resets the iteration
|
void |
setIterationReporter(DoubleIterationReporter monitor)
Sets new iteration reporter
|
void |
setNormType(Norm normType)
Sets the vector-norm to calculate with
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxIterations, setMaxIterations
public AbstractDoubleIterationMonitor()
public void setFirst()
DoubleIterationMonitor
setFirst
in interface DoubleIterationMonitor
public boolean isFirst()
DoubleIterationMonitor
isFirst
in interface DoubleIterationMonitor
public void next()
DoubleIterationMonitor
next
in interface DoubleIterationMonitor
public int iterations()
DoubleIterationMonitor
iterations
in interface DoubleIterationMonitor
public boolean converged(DoubleMatrix1D r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
r
- Residual-vectorx
- State-vectorIterativeSolverDoubleNotConvergedException
public boolean converged(double r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
r
- Residual-normx
- State-vectorIterativeSolverDoubleNotConvergedException
public boolean converged(double r) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
r
- Residual-normIterativeSolverDoubleNotConvergedException
public boolean converged(DoubleMatrix1D r) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
r
- Residual-vectorIterativeSolverDoubleNotConvergedException
public Norm getNormType()
DoubleIterationMonitor
getNormType
in interface DoubleIterationMonitor
public void setNormType(Norm normType)
DoubleIterationMonitor
setNormType
in interface DoubleIterationMonitor
public DoubleIterationReporter getIterationReporter()
DoubleIterationMonitor
getIterationReporter
in interface DoubleIterationMonitor
public void setIterationReporter(DoubleIterationReporter monitor)
DoubleIterationMonitor
setIterationReporter
in interface DoubleIterationMonitor
public double residual()
DoubleIterationMonitor
residual
in interface DoubleIterationMonitor
Jump to the Parallel Colt Homepage