public interface DoubleIterationMonitor
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
|
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
|
double |
residual()
Returns current residual
|
void |
setFirst()
Resets the iteration
|
void |
setIterationReporter(DoubleIterationReporter 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()
double residual()
boolean converged(DoubleMatrix1D r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
r
- Residual-vectorx
- State-vectorIterativeSolverDoubleNotConvergedException
boolean converged(double r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
r
- Residual-normx
- State-vectorIterativeSolverDoubleNotConvergedException
boolean converged(double r) throws IterativeSolverDoubleNotConvergedException
r
- Residual-normIterativeSolverDoubleNotConvergedException
boolean converged(DoubleMatrix1D r) throws IterativeSolverDoubleNotConvergedException
r
- Residual-vectorIterativeSolverDoubleNotConvergedException
void setIterationReporter(DoubleIterationReporter monitor)
DoubleIterationReporter getIterationReporter()
void setNormType(Norm normType)
Norm getNormType()
void setMaxIterations(int maxIter)
maxIter
- Maximum number of iterationsint getMaxIterations()
Jump to the Parallel Colt Homepage