|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.matrix.tdouble.algo.solver.AbstractDoubleIterativeSolver
cern.colt.matrix.tdouble.algo.solver.DoubleGMRES
public class DoubleGMRES
GMRES solver. GMRES solves the unsymmetric linear system Ax = b
using the Generalized Minimum Residual method. The GMRES iteration is
restarted after a given number of iterations. By default it is restarted
after 30 iterations.
Constructor Summary | |
---|---|
DoubleGMRES(DoubleMatrix1D template)
Constructor for GMRES. |
|
DoubleGMRES(DoubleMatrix1D template,
int restart)
Constructor for GMRES. |
Method Summary | |
---|---|
void |
setRestart(int restart)
Sets the restart parameter |
DoubleMatrix1D |
solve(DoubleMatrix2D A,
DoubleMatrix1D b,
DoubleMatrix1D x)
Solves the given problem, writing result into the vector. |
Methods inherited from class cern.colt.matrix.tdouble.algo.solver.AbstractDoubleIterativeSolver |
---|
getIterationMonitor, getPreconditioner, setIterationMonitor, setPreconditioner |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleGMRES(DoubleMatrix1D template)
template
- Vector to use as template for the work vectors needed in the
solution processpublic DoubleGMRES(DoubleMatrix1D template, int restart)
template
- Vector to use as template for the work vectors needed in the
solution processrestart
- GMRES iteration is restarted after this number of iterationsMethod Detail |
---|
public void setRestart(int restart)
restart
- GMRES iteration is restarted after this number of iterationspublic DoubleMatrix1D solve(DoubleMatrix2D A, DoubleMatrix1D b, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
DoubleIterativeSolver
A
- Matrix of the problemb
- Right hand sidex
- Solution is stored here. Also used as initial guess
IterativeSolverDoubleNotConvergedException
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |