public abstract class AbstractFloatIterationMonitor extends Object implements FloatIterationMonitor
| Constructor and Description |
|---|
AbstractFloatIterationMonitor()
Constructor for AbstractIterationMonitor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
converged(float r)
Checks for convergence
|
boolean |
converged(float r,
FloatMatrix1D x)
Checks for convergence
|
boolean |
converged(FloatMatrix1D r)
Checks for convergence
|
boolean |
converged(FloatMatrix1D r,
FloatMatrix1D x)
Checks for convergence
|
FloatIterationReporter |
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
|
float |
residual()
Returns current residual
|
void |
setFirst()
Resets the iteration
|
void |
setIterationReporter(FloatIterationReporter monitor)
Sets new iteration reporter
|
void |
setNormType(Norm normType)
Sets the vector-norm to calculate with
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxIterations, setMaxIterationspublic AbstractFloatIterationMonitor()
public void setFirst()
FloatIterationMonitorsetFirst in interface FloatIterationMonitorpublic boolean isFirst()
FloatIterationMonitorisFirst in interface FloatIterationMonitorpublic void next()
FloatIterationMonitornext in interface FloatIterationMonitorpublic int iterations()
FloatIterationMonitoriterations in interface FloatIterationMonitorpublic boolean converged(FloatMatrix1D r, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitorconverged in interface FloatIterationMonitorr - Residual-vectorx - State-vectorIterativeSolverFloatNotConvergedExceptionpublic boolean converged(float r,
FloatMatrix1D x)
throws IterativeSolverFloatNotConvergedException
FloatIterationMonitorconverged in interface FloatIterationMonitorr - Residual-normx - State-vectorIterativeSolverFloatNotConvergedExceptionpublic boolean converged(float r)
throws IterativeSolverFloatNotConvergedException
FloatIterationMonitorconverged in interface FloatIterationMonitorr - Residual-normIterativeSolverFloatNotConvergedExceptionpublic boolean converged(FloatMatrix1D r) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitorconverged in interface FloatIterationMonitorr - Residual-vectorIterativeSolverFloatNotConvergedExceptionpublic Norm getNormType()
FloatIterationMonitorgetNormType in interface FloatIterationMonitorpublic void setNormType(Norm normType)
FloatIterationMonitorsetNormType in interface FloatIterationMonitorpublic FloatIterationReporter getIterationReporter()
FloatIterationMonitorgetIterationReporter in interface FloatIterationMonitorpublic void setIterationReporter(FloatIterationReporter monitor)
FloatIterationMonitorsetIterationReporter in interface FloatIterationMonitorpublic float residual()
FloatIterationMonitorresidual in interface FloatIterationMonitorJump to the Parallel Colt Homepage