Search code examples
pythonnumpyscipycupy

Cupy says it has scipy's cg implemented, but cannot find cg(conjugate gradient method) when installed


I am unable to find this https://docs.cupy.dev/en/latest/reference/generated/cupyx.scipy.sparse.linalg.cg.html#cupyx.scipy.sparse.linalg.cg after the installation of cupy.

It says module not found

Can anyone help me? I don't know what's wrong, but I have installed cupy via pip, and this library was supposed to be there, but its not present.


Solution

  • The module is available in CuPy v9 betas. (The v: latest docs are generated by the master branch.) Try pip install with --pre to include pre-releases.