public class FloatCG extends AbstractFloatIterativeSolver
Ax=b
using the Conjugate Gradient method.Constructor and Description |
---|
FloatCG(FloatMatrix1D template)
Constructor for CG.
|
Modifier and Type | Method and Description |
---|---|
FloatMatrix1D |
solve(FloatMatrix2D A,
FloatMatrix1D b,
FloatMatrix1D x)
Solves the given problem, writing result into the vector.
|
getIterationMonitor, getPreconditioner, setIterationMonitor, setPreconditioner
public FloatCG(FloatMatrix1D template)
template
- Vector to use as template for the work vectors needed in the
solution processpublic 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 guessIterativeSolverFloatNotConvergedException
Jump to the Parallel Colt Homepage