gwexpy.interop.cupy_#
CuPy interop helpers.
Functions
|
Create a GWexpy object from a CuPy array. |
Check whether CuPy is installed and the CUDA environment is usable. |
|
|
Convert an object to a CuPy array. |
- gwexpy.interop.cupy_.is_cupy_available()#
Check whether CuPy is installed and the CUDA environment is usable.
- gwexpy.interop.cupy_.to_cupy(obj, dtype=None)#
Convert an object to a CuPy array.
- gwexpy.interop.cupy_.from_cupy(cls, array, t0, dt, unit=None)#
Create a GWexpy object from a CuPy array.