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 = bwith any of the Krylov solvers insolvers().The named wrappers below —
cg,gmres, and the rest — are thin calls onto this. Use this form when the solver is chosen at runtime.restartapplies to gmres,ellto bicgstab_ell andsto idr_s; each is ignored by the others.