cern.colt.matrix.tdouble.algo.solver
Interface DoubleIterationMonitor
-
- All Known Implementing Classes:
- AbstractDoubleIterationMonitor, CGLSDoubleIterationMonitor, DefaultDoubleIterationMonitor, HyBRDoubleIterationMonitor, MRNSDDoubleIterationMonitor
public interface DoubleIterationMonitorMonitors the iterative solution process for convergence and divergence. Can also report the current progress.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanconverged(double r)Checks for convergencebooleanconverged(double r, DoubleMatrix1D x)Checks for convergencebooleanconverged(DoubleMatrix1D r)Checks for convergencebooleanconverged(DoubleMatrix1D r, DoubleMatrix1D x)Checks for convergenceDoubleIterationReportergetIterationReporter()Returns current iteration reporterintgetMaxIterations()Returns the maximum number of iterationsNormgetNormType()Returns the vector-norm in usebooleanisFirst()Returns true for the first iterationintiterations()Number of iterations performedvoidnext()Increases iteration counterdoubleresidual()Returns current residualvoidsetFirst()Resets the iterationvoidsetIterationReporter(DoubleIterationReporter monitor)Sets new iteration reportervoidsetMaxIterations(int maxIter)Sets maximum number of iterations to permitvoidsetNormType(Norm normType)Sets the vector-norm to calculate with
-
-
-
Method Detail
-
setFirst
void setFirst()
Resets the iteration
-
isFirst
boolean isFirst()
Returns true for the first iteration
-
next
void next()
Increases iteration counter
-
iterations
int iterations()
Number of iterations performed
-
residual
double residual()
Returns current residual
-
converged
boolean converged(DoubleMatrix1D r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
Checks for convergence- Parameters:
r- Residual-vectorx- State-vector- Returns:
- True if converged
- Throws:
IterativeSolverDoubleNotConvergedException
-
converged
boolean converged(double r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedExceptionChecks for convergence- Parameters:
r- Residual-normx- State-vector- Returns:
- True if converged
- Throws:
IterativeSolverDoubleNotConvergedException
-
converged
boolean converged(double r) throws IterativeSolverDoubleNotConvergedExceptionChecks for convergence- Parameters:
r- Residual-norm- Returns:
- True if converged
- Throws:
IterativeSolverDoubleNotConvergedException
-
converged
boolean converged(DoubleMatrix1D r) throws IterativeSolverDoubleNotConvergedException
Checks for convergence- Parameters:
r- Residual-vector- Returns:
- True if converged
- Throws:
IterativeSolverDoubleNotConvergedException
-
setIterationReporter
void setIterationReporter(DoubleIterationReporter monitor)
Sets new iteration reporter
-
getIterationReporter
DoubleIterationReporter getIterationReporter()
Returns current iteration reporter
-
setNormType
void setNormType(Norm normType)
Sets the vector-norm to calculate with
-
getNormType
Norm getNormType()
Returns the vector-norm in use
-
setMaxIterations
void setMaxIterations(int maxIter)
Sets maximum number of iterations to permit- Parameters:
maxIter- Maximum number of iterations
-
getMaxIterations
int getMaxIterations()
Returns the maximum number of iterations
-
-
DMelt 3.0 © DataMelt by jWork.ORG