|
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.tdouble.algo.solver.AbstractDoubleIterationMonitor
public abstract class AbstractDoubleIterationMonitor
Partial implementation of an iteration reporter
Constructor Summary | |
---|---|
AbstractDoubleIterationMonitor()
Constructor for AbstractIterationMonitor. |
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 |
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 |
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.tdouble.algo.solver.DoubleIterationMonitor |
---|
getMaxIterations, setMaxIterations |
Constructor Detail |
---|
public AbstractDoubleIterationMonitor()
Method Detail |
---|
public void setFirst()
DoubleIterationMonitor
setFirst
in interface DoubleIterationMonitor
public boolean isFirst()
DoubleIterationMonitor
isFirst
in interface DoubleIterationMonitor
public void next()
DoubleIterationMonitor
next
in interface DoubleIterationMonitor
public int iterations()
DoubleIterationMonitor
iterations
in interface DoubleIterationMonitor
public boolean converged(DoubleMatrix1D r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
r
- Residual-vectorx
- State-vector
IterativeSolverDoubleNotConvergedException
public boolean converged(double r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
r
- Residual-normx
- State-vector
IterativeSolverDoubleNotConvergedException
public boolean converged(double r) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
r
- Residual-norm
IterativeSolverDoubleNotConvergedException
public boolean converged(DoubleMatrix1D r) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
r
- Residual-vector
IterativeSolverDoubleNotConvergedException
public Norm getNormType()
DoubleIterationMonitor
getNormType
in interface DoubleIterationMonitor
public void setNormType(Norm normType)
DoubleIterationMonitor
setNormType
in interface DoubleIterationMonitor
public DoubleIterationReporter getIterationReporter()
DoubleIterationMonitor
getIterationReporter
in interface DoubleIterationMonitor
public void setIterationReporter(DoubleIterationReporter monitor)
DoubleIterationMonitor
setIterationReporter
in interface DoubleIterationMonitor
public double residual()
DoubleIterationMonitor
residual
in interface DoubleIterationMonitor
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |