All Packages Class Hierarchy This Package Previous Next Index
Class juice.solver.CGPrecondSolver
java.lang.Object
|
+----juice.solver.IterativeSlv
|
+----juice.solver.CGPrecondSolver
- public class CGPrecondSolver
- extends IterativeSlv
- implements LinearSolver
Conjugate Gradient Solver.
By decomposing the calculations into several routines, CGPrecondSolver
is made to be subclassed, so that slight modifications to the standard
behavior can be made.
-
M
-
-
res
-
-
reset
-
-
rtrNew
-
-
CGPrecondSolver(Iterator, Operator)
-
-
CGPrecondSolver(Operator)
-
-
doOneStep(Vector, Vector, Vector)
-
-
getNormResidual()
-
-
getResidual()
-
-
setReset(int)
- after each reset-th iteration I compute the exact residual to
remove accumulated floating point error (default is 50).
-
solve(Operator, Vector, Vector)
- Solves Ax = b for x
"Solve" is used in a loose sense.
M
protected Operator M
res
protected Vector res
rtrNew
protected float rtrNew
reset
protected int reset
CGPrecondSolver
public CGPrecondSolver(Operator preconditioner)
CGPrecondSolver
public CGPrecondSolver(Iterator iterator,
Operator preconditioner)
setReset
public void setReset(int reset)
- after each reset-th iteration I compute the exact residual to
remove accumulated floating point error (default is 50).
getResidual
public Vector getResidual()
- Overrides:
- getResidual in class IterativeSlv
getNormResidual
public float getNormResidual()
- Overrides:
- getNormResidual in class IterativeSlv
solve
public void solve(Operator A,
Vector b,
Vector x)
- Solves Ax = b for x
"Solve" is used in a loose sense.
- Overrides:
- solve in class IterativeSlv
doOneStep
protected void doOneStep(Vector s,
Vector v,
Vector p)
All Packages Class Hierarchy This Package Previous Next Index