|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.matrix.tfloat.algo.solver.AbstractFloatIterativeSolver
cern.colt.matrix.tfloat.algo.solver.FloatCG
public class FloatCG
Conjugate Gradients solver. CG solves the symmetric positive definite linear
system Ax=b
using the Conjugate Gradient method.
Constructor Summary | |
---|---|
FloatCG(FloatMatrix1D template)
Constructor for CG. |
Method Summary | |
---|---|
FloatMatrix1D |
solve(FloatMatrix2D A,
FloatMatrix1D b,
FloatMatrix1D x)
Solves the given problem, writing result into the vector. |
Methods inherited from class cern.colt.matrix.tfloat.algo.solver.AbstractFloatIterativeSolver |
---|
getIterationMonitor, getPreconditioner, setIterationMonitor, setPreconditioner |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatCG(FloatMatrix1D template)
template
- Vector to use as template for the work vectors needed in the
solution processMethod Detail |
---|
public FloatMatrix1D solve(FloatMatrix2D A, FloatMatrix1D b, FloatMatrix1D x) throws IterativeSolverFloatNotConvergedException
FloatIterativeSolver
A
- Matrix of the problemb
- Right hand sidex
- Solution is stored here. Also used as initial guess
IterativeSolverFloatNotConvergedException
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |