public class FloatCGS extends AbstractFloatIterativeSolver
Ax = b
using the Conjugate Gradient Squared methodConstructor and Description |
---|
FloatCGS(FloatMatrix1D template)
Constructor for CGS.
|
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 FloatCGS(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