|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.matrix.tfloat.algo.solver.AbstractFloatIterationMonitor
cern.colt.matrix.tfloat.algo.solver.DefaultFloatIterationMonitor
public class DefaultFloatIterationMonitor
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.
Constructor Summary | |
---|---|
DefaultFloatIterationMonitor()
Constructor for DefaultIterationMonitor. |
|
DefaultFloatIterationMonitor(int maxIter,
float rtol,
float atol,
float dtol)
Constructor for DefaultIterationMonitor |
Method Summary | |
---|---|
float |
getAbsoluteTolerance()
Returns the absolute convergence tolerance |
float |
getDivergenceTolerance()
Returns the relative divergence tolerance |
int |
getMaxIterations()
Returns maximum number of iterations to permit |
float |
getRelativeTolerance()
Returns the relative convergence tolerance |
void |
setAbsoluteTolerance(float atol)
Sets the absolute convergence tolerance |
void |
setDivergenceTolerance(float dtol)
Sets the relative divergence tolerance |
void |
setMaxIterations(int maxIter)
Sets maximum number of iterations to permit |
void |
setRelativeTolerance(float rtol)
Sets the relative convergence tolerance |
Methods inherited from class cern.colt.matrix.tfloat.algo.solver.AbstractFloatIterationMonitor |
---|
converged, converged, converged, converged, getIterationReporter, getNormType, isFirst, iterations, next, residual, setFirst, setIterationReporter, setNormType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFloatIterationMonitor(int maxIter, float rtol, float atol, float dtol)
maxIter
- Maximum number of iterationsrtol
- Relative convergence tolerance (to initial residual)atol
- Absolute convergence tolerancedtol
- Relative divergence tolerance (to initial residual)public DefaultFloatIterationMonitor()
Method Detail |
---|
public void setMaxIterations(int maxIter)
maxIter
- Maximum number of iterationspublic int getMaxIterations()
public void setRelativeTolerance(float rtol)
rtol
- relative convergence tolerance (to initial residual)public float getRelativeTolerance()
public void setAbsoluteTolerance(float atol)
atol
- absolute convergence tolerancepublic float getAbsoluteTolerance()
public void setDivergenceTolerance(float dtol)
dtol
- relative divergence tolerance (to initial residual)public float getDivergenceTolerance()
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |