mtl5.sparse.iterative_solve#

mtl5.sparse.iterative_solve(A, b, *, solver='gmres', rtol=1e-10, maxiter=1000, M=None, callback=None, device=None, restart=30, ell=2, s=4)#

Solve A @ x = b with any of the Krylov solvers in solvers().

The named wrappers below — cg, gmres, and the rest — are thin calls onto this. Use this form when the solver is chosen at runtime.

restart applies to gmres, ell to bicgstab_ell and s to idr_s; each is ignored by the others.