gwexpy.interop.cupy_

CuPy interop helpers.

Functions

from_cupy(cls, array, t0, dt[, unit])

Create a GWexpy object from a CuPy array.

is_cupy_available()

Check whether CuPy is installed and the CUDA environment is usable.

to_cupy(obj[, dtype])

Convert an object to a CuPy array.

gwexpy.interop.cupy_.is_cupy_available()[source]

Check whether CuPy is installed and the CUDA environment is usable.

gwexpy.interop.cupy_.to_cupy(obj, dtype=None)[source]

Convert an object to a CuPy array.

gwexpy.interop.cupy_.from_cupy(cls, array, t0, dt, unit=None)[source]

Create a GWexpy object from a CuPy array.