public interface FloatIterationMonitor
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
|
int |
getMaxIterations()
Returns the maximum number of iterations
|
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 |
setMaxIterations(int maxIter)
Sets maximum number of iterations to permit
|
void |
setNormType(Norm normType)
Sets the vector-norm to calculate with
|
void setFirst()
boolean isFirst()
void next()
int iterations()
float residual()
boolean converged(FloatMatrix1D r, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
r
- Residual-vectorx
- State-vectorIterativeSolverFloatNotConvergedException
boolean converged(float r, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
r
- Residual-normx
- State-vectorIterativeSolverFloatNotConvergedException
boolean converged(float r) throws IterativeSolverFloatNotConvergedException
r
- Residual-normIterativeSolverFloatNotConvergedException
boolean converged(FloatMatrix1D r) throws IterativeSolverFloatNotConvergedException
r
- Residual-vectorIterativeSolverFloatNotConvergedException
void setIterationReporter(FloatIterationReporter monitor)
FloatIterationReporter getIterationReporter()
void setNormType(Norm normType)
Norm getNormType()
void setMaxIterations(int maxIter)
maxIter
- Maximum number of iterationsint getMaxIterations()
Jump to the Parallel Colt Homepage