|
Parallel Colt 0.7.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DoubleIterationMonitor
Monitors the iterative solution process for convergence and divergence. Can also report the current progress.
Method Summary | |
---|---|
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 |
Method Detail |
---|
void setFirst()
boolean isFirst()
void next()
int iterations()
double residual()
boolean converged(DoubleMatrix1D r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
r
- Residual-vectorx
- State-vector
IterativeSolverDoubleNotConvergedException
boolean converged(double r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
r
- Residual-normx
- State-vector
IterativeSolverDoubleNotConvergedException
boolean converged(double r) throws IterativeSolverDoubleNotConvergedException
r
- Residual-norm
IterativeSolverDoubleNotConvergedException
boolean converged(DoubleMatrix1D r) throws IterativeSolverDoubleNotConvergedException
r
- Residual-vector
IterativeSolverDoubleNotConvergedException
void setIterationReporter(DoubleIterationReporter monitor)
DoubleIterationReporter getIterationReporter()
void setNormType(Norm normType)
Norm getNormType()
void setMaxIterations(int maxIter)
maxIter
- Maximum number of iterationsint getMaxIterations()
|
Parallel Colt 0.7.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |