|
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.tfloat.algo.solver.AbstractFloatIterativeSolver
cern.colt.matrix.tfloat.algo.solver.FloatQMR
public class FloatQMR
Quasi-Minimal Residual method. QMR solves the unsymmetric linear system
Ax = b
using the Quasi-Minimal Residual method. QMR uses two
preconditioners, and by default these are the same preconditioner.
Constructor Summary | |
---|---|
FloatQMR(FloatMatrix1D template)
Constructor for QMR. |
|
FloatQMR(FloatMatrix1D template,
FloatPreconditioner M1,
FloatPreconditioner M2)
Constructor for QMR. |
Method Summary | |
---|---|
void |
setPreconditioner(FloatPreconditioner M)
Sets preconditioner |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatQMR(FloatMatrix1D template)
template
- Vector to use as template for the work vectors needed in the
solution processpublic FloatQMR(FloatMatrix1D template, FloatPreconditioner M1, FloatPreconditioner M2)
template
- Vector to use as template for the work vectors needed in the
solution processM1
- Left preconditionerM2
- Right preconditionerMethod 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
public void setPreconditioner(FloatPreconditioner M)
FloatIterativeSolver
setPreconditioner
in interface FloatIterativeSolver
setPreconditioner
in class AbstractFloatIterativeSolver
M
- Preconditioner to use
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |