All Packages Class Hierarchy This Package Previous Next Index
Class juice.solver.SteepDescentSlv
java.lang.Object
|
+----juice.solver.IterativeSlv
|
+----juice.solver.SteepDescentSlv
- public class SteepDescentSlv
- extends IterativeSlv
- implements LinearSolver
Steepest Descent Solver.
By decomposing the calculations into several routines, CGSolver
is made to be subclassed, so that slight modifications to the standard
behavior can be made.
-
res
-
-
reset
-
-
rtr
-
-
SteepDescentSlv()
-
-
SteepDescentSlv(Iterator)
-
-
doOneStep(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.
res
protected Vector res
rtr
protected float rtr
reset
protected int reset
SteepDescentSlv
public SteepDescentSlv()
SteepDescentSlv
public SteepDescentSlv(Iterator iterator)
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 v)
All Packages Class Hierarchy This Package Previous Next Index