Back to Scientific Computing (SciPy)
sp.sparse.gmres
GMRES (Generalized Minimal Residual) method for solving Ax = b
Syntax
sp.sparse.gmres(A, b, options?)
Description
GMRES (Generalized Minimal Residual) method for solving Ax = b Solves the linear system Ax = b for x using the restarted GMRES algorithm. Works for general (possibly non-symmetric) matrices.
Parameters
| Name | Description |
|---|---|
| A | - Sparse matrix or LinearOperator |
| b | - Right-hand side vector |
| options(optional) | - Solver options including restart parameter |
Returns
IterativeSolverResult