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.


Variable Index

 o res
 o reset
 o rtr

Constructor Index

 o SteepDescentSlv()
 o SteepDescentSlv(Iterator)

Method Index

 o doOneStep(Vector)
 o getNormResidual()
 o getResidual()
 o setReset(int)
after each reset-th iteration I compute the exact residual to remove accumulated floating point error (default is 50).
 o solve(Operator, Vector, Vector)
Solves Ax = b for x
"Solve" is used in a loose sense.

Variables

 o res
 protected Vector res
 o rtr
 protected float rtr
 o reset
 protected int reset

Constructors

 o SteepDescentSlv
 public SteepDescentSlv()
 o SteepDescentSlv
 public SteepDescentSlv(Iterator iterator)

Methods

 o 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).

 o getResidual
 public Vector getResidual()
Overrides:
getResidual in class IterativeSlv
 o getNormResidual
 public float getNormResidual()
Overrides:
getNormResidual in class IterativeSlv
 o 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
 o doOneStep
 protected void doOneStep(Vector v)

All Packages  Class Hierarchy  This Package  Previous  Next  Index