cupyx.scipy.sparse.linalg.gmres#

cupyx.scipy.sparse.linalg.gmres(A, b, x0=None, *, rtol=1e-05, atol=0.0, restart=None, maxiter=None, M=None, callback=None, callback_type=None)[source]#

Uses Generalized Minimal RESidual iteration to solve Ax = b.

Parameters:
Returns:

It returns x (cupy.ndarray) and info (int) where x is the converged solution and info provides convergence information.

Return type:

tuple

Reference:

M. Wang, H. Klie, M. Parashar and H. Sudan, “Solving Sparse Linear Systems on NVIDIA Tesla GPUs”, ICCS 2009 (2009).