All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class juice.solver.CGNonlinSolver2

java.lang.Object
   |
   +----juice.solver.IterativeSlv
           |
           +----juice.solver.CGNonlinSolver2

public class CGNonlinSolver2
extends IterativeSlv
implements Solver
Conjugate Gradient Solver.



Variable Index

 o alphaTol
 o nAlphaSteps
 o nReset
 o res
 o rtrNew
 o secantSigma

Constructor Index

 o CGNonlinSolver2()
 o CGNonlinSolver2(Iterator)

Method Index

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

Variables

 o res
 protected Vector res
 o rtrNew
 protected float rtrNew
 o nReset
 protected int nReset
 o secantSigma
 protected float secantSigma
 o nAlphaSteps
 protected int nAlphaSteps
 o alphaTol
 protected float alphaTol

Constructors

 o CGNonlinSolver2
 public CGNonlinSolver2()
 o CGNonlinSolver2
 public CGNonlinSolver2(Iterator iterator)

Methods

 o setReset
 public void setReset(int nReset)
after each nReset-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 solve
 public void solve(hasGradient f,
                   Vector x)
 o alphaUpdate
 protected void alphaUpdate(Vector p)
 o betaUpdate
 protected void betaUpdate(Vector p)

All Packages  Class Hierarchy  This Package  Previous  Next  Index