|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uib.cipr.matrix.sparse.AbstractIterationMonitor
no.uib.cipr.matrix.sparse.DefaultIterationMonitor
public class DefaultIterationMonitor
Default iteration monitor. This tester checks declares convergence if the absolute value of the residual norm is sufficiently small, or if the relative decrease is small. Divergence is decleared if too many iterations are spent, or the residual has grown too much. NaNs will also cause divergence to be flagged.
Field Summary |
---|
Fields inherited from class no.uib.cipr.matrix.sparse.AbstractIterationMonitor |
---|
iter, normType, reporter, residual |
Constructor Summary | |
---|---|
DefaultIterationMonitor()
Constructor for DefaultIterationMonitor. |
|
DefaultIterationMonitor(int maxIter,
double rtol,
double atol,
double dtol)
Constructor for DefaultIterationMonitor |
Method Summary | |
---|---|
protected boolean |
convergedI(double r)
|
protected boolean |
convergedI(double r,
Vector x)
|
void |
setAbsoluteTolerance(double atol)
Sets the absolute tolerance |
void |
setDivergenceTolerance(double dtol)
Sets the divergence tolerance |
void |
setMaxIterations(int maxIter)
Sets maximum number of iterations to permit |
void |
setRelativeTolerance(double rtol)
Sets the relative tolerance |
Methods inherited from class no.uib.cipr.matrix.sparse.AbstractIterationMonitor |
---|
converged, converged, converged, converged, getIterationReporter, getNormType, isFirst, iterations, next, residual, setFirst, setIterationReporter, setNormType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIterationMonitor(int maxIter, double rtol, double atol, double dtol)
maxIter
- Maximum number of iterationsrtol
- Relative convergence tolerance (to initial residual)atol
- Absolute convergence tolerancedtol
- Relative divergence tolerance (to initial residual)public DefaultIterationMonitor()
Method Detail |
---|
public void setMaxIterations(int maxIter)
maxIter
- Maximum number of iterationspublic void setRelativeTolerance(double rtol)
rtol
- Relative convergence tolerance (to initial residual)public void setAbsoluteTolerance(double atol)
atol
- Absolute convergence tolerancepublic void setDivergenceTolerance(double dtol)
dtol
- Relative divergence tolerance (to initial residual)protected boolean convergedI(double r) throws IterativeSolverNotConvergedException
convergedI
in class AbstractIterationMonitor
IterativeSolverNotConvergedException
protected boolean convergedI(double r, Vector x) throws IterativeSolverNotConvergedException
convergedI
in class AbstractIterationMonitor
IterativeSolverNotConvergedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |