public class MatrixIterationMonitor extends DefaultIterationMonitor
iter, normType, reporter, residual
Constructor and Description |
---|
MatrixIterationMonitor(double normA,
double normb)
Constructor for MatrixIterationMonitor.
|
MatrixIterationMonitor(double normA,
double normb,
int maxIter,
double rtol,
double atol,
double dtol)
Constructor for MatrixIterationMonitor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
convergedI(double r) |
protected boolean |
convergedI(double r,
Vector x) |
void |
setMatrixNorm(double normA)
Sets the norm of the system matrix
|
void |
setVectorNorm(double normb)
Sets the norm of the right hand side vector
|
setAbsoluteTolerance, setDivergenceTolerance, setMaxIterations, setRelativeTolerance
converged, converged, converged, converged, getIterationReporter, getNormType, isFirst, iterations, next, residual, setFirst, setIterationReporter, setNormType
public MatrixIterationMonitor(double normA, double normb, int maxIter, double rtol, double atol, double dtol)
normA
- Norm of the matrix Anormb
- Norm of the vector bmaxIter
- Maximum number of iterationsrtol
- Relative convergence tolerance (to initial residual)atol
- Absolute convergence tolerancedtol
- Relative divergence tolerance (to initial residual)public MatrixIterationMonitor(double normA, double normb)
public void setMatrixNorm(double normA)
normA
- Norm of the matrix Apublic void setVectorNorm(double normb)
normb
- Norm of the vector bprotected boolean convergedI(double r, Vector x) throws IterativeSolverNotConvergedException
convergedI
in class DefaultIterationMonitor
IterativeSolverNotConvergedException
protected boolean convergedI(double r)
convergedI
in class DefaultIterationMonitor
Copyright © 2015. All Rights Reserved.