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.
-
alphaTol
-
-
nAlphaSteps
-
-
nReset
-
-
res
-
-
rtrNew
-
-
secantSigma
-
-
CGNonlinSolver2()
-
-
CGNonlinSolver2(Iterator)
-
-
alphaUpdate(Vector)
-
-
betaUpdate(Vector)
-
-
getNormResidual()
-
-
getResidual()
-
-
setReset(int)
- after each nReset-th iteration I compute the exact residual to
remove accumulated floating point error (default is 50).
-
solve(hasGradient, Vector)
-
-
solve(Operator, Vector, Vector)
- Solves Ax = b for x
"Solve" is used in a loose sense.
res
protected Vector res
rtrNew
protected float rtrNew
nReset
protected int nReset
secantSigma
protected float secantSigma
nAlphaSteps
protected int nAlphaSteps
alphaTol
protected float alphaTol
CGNonlinSolver2
public CGNonlinSolver2()
CGNonlinSolver2
public CGNonlinSolver2(Iterator iterator)
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).
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
solve
public void solve(hasGradient f,
Vector x)
alphaUpdate
protected void alphaUpdate(Vector p)
betaUpdate
protected void betaUpdate(Vector p)
All Packages Class Hierarchy This Package Previous Next Index