Parallel Colt 0.7.2

cern.colt.matrix.tdouble.algo.solver
Interface DoubleIterationMonitor

All Known Implementing Classes:
AbstractDoubleIterationMonitor, CGLSDoubleIterationMonitor, DefaultDoubleIterationMonitor, HyBRDoubleIterationMonitor, MRNSDDoubleIterationMonitor

public interface DoubleIterationMonitor

Monitors the iterative solution process for convergence and divergence. Can also report the current progress.


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
 int getMaxIterations()
          Returns the maximum number of iterations
 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 setMaxIterations(int maxIter)
          Sets maximum number of iterations to permit
 void setNormType(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-vector
x - State-vector
Returns:
True if converged
Throws:
IterativeSolverDoubleNotConvergedException

converged

boolean converged(double r,
                  DoubleMatrix1D x)
                  throws IterativeSolverDoubleNotConvergedException
Checks for convergence

Parameters:
r - Residual-norm
x - State-vector
Returns:
True if converged
Throws:
IterativeSolverDoubleNotConvergedException

converged

boolean converged(double r)
                  throws IterativeSolverDoubleNotConvergedException
Checks 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


Parallel Colt 0.7.2

Jump to the Parallel Colt Homepage