public class HyBRDoubleIterationMonitor extends AbstractDoubleIterationMonitor
Constructor and Description |
---|
HyBRDoubleIterationMonitor()
Constructor for HyBRDoubleIterationMonitor.
|
HyBRDoubleIterationMonitor(int maxIter,
double dtol)
Constructor for HyBRDoubleIterationMonitor
|
Modifier and Type | Method and Description |
---|---|
boolean |
converged(double r)
Checks for convergence
|
boolean |
converged(double r,
DoubleMatrix1D x)
Checks for convergence
|
double |
getDivergenceTolerance()
Returns the relative divergence tolerance
|
int |
getMaxIterations()
Returns the maximum number of iterations
|
double |
getRegularizationParameter()
Returns the regularization parameter
|
cern.colt.matrix.tdouble.algo.solver.HyBRDoubleIterationMonitor.HyBRStoppingCondition |
getStoppingCondition()
Returns the stopping condition
|
int |
iterations()
Number of iterations performed
|
void |
setDivergenceTolerance(double dtol)
Sets the relative divergence tolerance
|
void |
setMaxIterations(int maxIter)
Sets maximum number of iterations to permit
|
void |
setRegularizationParameter(double regularizationParameter)
Sets the regularization parameter
|
void |
setStoppingCondition(cern.colt.matrix.tdouble.algo.solver.HyBRDoubleIterationMonitor.HyBRStoppingCondition stoppingCondition)
Sets the stopping condition
|
converged, converged, getIterationReporter, getNormType, isFirst, next, residual, setFirst, setIterationReporter, setNormType
public HyBRDoubleIterationMonitor()
public HyBRDoubleIterationMonitor(int maxIter, double dtol)
maxIter
- Maximum number of iterationsdtol
- Relative divergence tolerance (to initial residual)public boolean converged(double r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
converged
in class AbstractDoubleIterationMonitor
r
- Residual-normx
- State-vectorIterativeSolverDoubleNotConvergedException
public boolean converged(double r) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitor
converged
in interface DoubleIterationMonitor
converged
in class AbstractDoubleIterationMonitor
r
- Residual-normIterativeSolverDoubleNotConvergedException
public int getMaxIterations()
DoubleIterationMonitor
public void setMaxIterations(int maxIter)
DoubleIterationMonitor
maxIter
- Maximum number of iterationspublic void setDivergenceTolerance(double dtol)
dtol
- relative divergence tolerance (to initial residual)public double getDivergenceTolerance()
public double getRegularizationParameter()
public void setRegularizationParameter(double regularizationParameter)
regularizationParameter
- regularization parameterpublic void setStoppingCondition(cern.colt.matrix.tdouble.algo.solver.HyBRDoubleIterationMonitor.HyBRStoppingCondition stoppingCondition)
stoppingCondition
- stopping conditionpublic cern.colt.matrix.tdouble.algo.solver.HyBRDoubleIterationMonitor.HyBRStoppingCondition getStoppingCondition()
public int iterations()
DoubleIterationMonitor
iterations
in interface DoubleIterationMonitor
iterations
in class AbstractDoubleIterationMonitor
Jump to the Parallel Colt Homepage