cupyx.scipy.sparse.linalg.cgs#

cupyx.scipy.sparse.linalg.cgs(A, b, x0=None, tol=1e-05, maxiter=None, M=None, callback=None, atol=None)[source]#

Use Conjugate Gradient Squared 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