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, wait
getMaxIterations, setMaxIterations
public AbstractFloatIterationMonitor()
public void setFirst()
FloatIterationMonitor
setFirst
in interface FloatIterationMonitor
public boolean isFirst()
FloatIterationMonitor
isFirst
in interface FloatIterationMonitor
public void next()
FloatIterationMonitor
next
in interface FloatIterationMonitor
public int iterations()
FloatIterationMonitor
iterations
in interface FloatIterationMonitor
public boolean converged(FloatMatrix1D r, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitor
converged
in interface FloatIterationMonitor
r
- Residual-vectorx
- State-vectorIterativeSolverFloatNotConvergedException
public boolean converged(float r, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitor
converged
in interface FloatIterationMonitor
r
- Residual-normx
- State-vectorIterativeSolverFloatNotConvergedException
public boolean converged(float r) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitor
converged
in interface FloatIterationMonitor
r
- Residual-normIterativeSolverFloatNotConvergedException
public boolean converged(FloatMatrix1D r) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitor
converged
in interface FloatIterationMonitor
r
- Residual-vectorIterativeSolverFloatNotConvergedException
public Norm getNormType()
FloatIterationMonitor
getNormType
in interface FloatIterationMonitor
public void setNormType(Norm normType)
FloatIterationMonitor
setNormType
in interface FloatIterationMonitor
public FloatIterationReporter getIterationReporter()
FloatIterationMonitor
getIterationReporter
in interface FloatIterationMonitor
public void setIterationReporter(FloatIterationReporter monitor)
FloatIterationMonitor
setIterationReporter
in interface FloatIterationMonitor
public float residual()
FloatIterationMonitor
residual
in interface FloatIterationMonitor
Jump to the Parallel Colt Homepage