bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_compat / common / _helpers / is_cupy_array
function
scipy._external.array_api_compat.common._helpers:is_cupy_array
Signature
def is_cupy_array(x: object) → boolSummary
Return True if x is a CuPy array.
Extended Summary
This function does not import CuPy if it has not already been imported and is therefore cheap to use.
This also returns True for cupy.ndarray subclasses and CuPy scalar objects.
See also
Aliases
scipy.differentiate.xpx._delegation._funcs._compat.is_cupy_array