bundles / scipy 1.17.1 / scipy / _lib / array_api_compat / common / _helpers / is_numpy_array
function
scipy._lib.array_api_compat.common._helpers:is_numpy_array
Signature
def is_numpy_array ( x : object ) → TypeIs[npt.NDArray[Any]] Summary
Return True if x is a NumPy array.
Extended Summary
This function does not import NumPy if it has not already been imported and is therefore cheap to use.
This also returns True for ndarray subclasses and NumPy scalar objects.
See also
Aliases
-
scipy.differentiate.xpx._delegation._funcs._compat.is_numpy_array