All Packages Class Hierarchy This Package Previous Next Index
Interface jam.solver.IterativeSolver
- public interface interface IterativeSolver
- extends Solver
Iterative Solver solves a problem A x - b = 0 for x.
Maybe we should have something like getGradient();
Maybe we should have something like getOperator() and getVector();
Some of these can be implemented in a very general fashion.
-
getApproximation()
-
-
getIteration()
-
-
getNormResidual()
-
-
getRelativeNormResidual()
-
-
getResidual()
-
getApproximation
public abstract Vector getApproximation()
- Returns:
- Vector current x (converges to the solution while iterating)
getResidual
public abstract Vector getResidual()
- Returns:
- Vector current A x - b
getNormResidual
public abstract float getNormResidual()
- Returns:
- float current |A x - b| ^2
getRelativeNormResidual
public abstract float getRelativeNormResidual()
- Returns:
- float current (|A x - b| / |A x_0 - b|) ^2
getIteration
public abstract int getIteration()
- Returns:
- int number of iterations
All Packages Class Hierarchy This Package Previous Next Index