The solver used in cupyx.scipy.sparse.linalg.lsqr is not a least-square solver.
Author: anaruseCreated Sep 17, 2020Updated Sep 26, 2026
Labelscat:bugprio:high
I just noticed that cupyx.scipy.sparse.linalg.lsqr uses cusolverSpXcsrlsvqr (link) that is linear solver, not least-square solver. That said, current cupyx.scipy.sparse.linalg.lsqr is not compatible with scipy.sparse.linalg.lsqr that is a function to find the least-square solution.
Probably, we should use current cupyx.scipy.sparse.linalg.lsqr implementation as cupyx.scipy.sparse.linalg.spsolve.
Source: cupy/cupy