public class BiCG extends AbstractIterativeSolver
Ax = b
using the Preconditioned BiConjugate Gradient method.iter, M| Constructor and Description |
|---|
BiCG(Vector template)
Constructor for BiCG.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
solve(Matrix A,
Vector b,
Vector x)
Solves the given problem, writing result into the vector.
|
checkSizes, getIterationMonitor, getPreconditioner, setIterationMonitor, setPreconditionerpublic BiCG(Vector template)
template - Vector to use as template for the work vectors needed in the
solution processpublic Vector solve(Matrix A, Vector b, Vector x) throws IterativeSolverNotConvergedException
IterativeSolverA - Matrix of the problemb - Right hand sidex - Solution is stored here. Also used as initial guessIterativeSolverNotConvergedExceptionCopyright © 2015. All Rights Reserved.