|
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
public abstract class AbstractFloatIterationMonitor
Partial implementation of an iteration reporter
Constructor Summary | |
---|---|
AbstractFloatIterationMonitor()
Constructor for AbstractIterationMonitor. |
Method Summary | |
---|---|
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 |
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 |
setNormType(Norm normType)
Sets the vector-norm to calculate with |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cern.colt.matrix.tfloat.algo.solver.FloatIterationMonitor |
---|
getMaxIterations, setMaxIterations |
Constructor Detail |
---|
public AbstractFloatIterationMonitor()
Method Detail |
---|
public void setFirst()
FloatIterationMonitor
setFirst
in interface FloatIterationMonitor
public boolean isFirst()
FloatIterationMonitor
isFirst
in interface FloatIterationMonitor
public void next()
FloatIterationMonitor
next
in interface FloatIterationMonitor
public int iterations()
FloatIterationMonitor
iterations
in interface FloatIterationMonitor
public boolean converged(FloatMatrix1D r, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitor
converged
in interface FloatIterationMonitor
r
- Residual-vectorx
- State-vector
IterativeSolverFloatNotConvergedException
public boolean converged(float r, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitor
converged
in interface FloatIterationMonitor
r
- Residual-normx
- State-vector
IterativeSolverFloatNotConvergedException
public boolean converged(float r) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitor
converged
in interface FloatIterationMonitor
r
- Residual-norm
IterativeSolverFloatNotConvergedException
public boolean converged(FloatMatrix1D r) throws IterativeSolverFloatNotConvergedException
FloatIterationMonitor
converged
in interface FloatIterationMonitor
r
- Residual-vector
IterativeSolverFloatNotConvergedException
public Norm getNormType()
FloatIterationMonitor
getNormType
in interface FloatIterationMonitor
public void setNormType(Norm normType)
FloatIterationMonitor
setNormType
in interface FloatIterationMonitor
public FloatIterationReporter getIterationReporter()
FloatIterationMonitor
getIterationReporter
in interface FloatIterationMonitor
public void setIterationReporter(FloatIterationReporter monitor)
FloatIterationMonitor
setIterationReporter
in interface FloatIterationMonitor
public float residual()
FloatIterationMonitor
residual
in interface FloatIterationMonitor
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |