bundles / scipy 1.17.1 / scipy / _lib / array_api_compat / common / _helpers / is_pydata_sparse_array
function
scipy._lib.array_api_compat.common._helpers:is_pydata_sparse_array
source: /scipy/_lib/array_api_compat/common/_helpers.py :251
Signature
def is_pydata_sparse_array ( x : object ) → TypeIs[sparse.SparseArray] Summary
Return True if x is an array from the sparse package.
Extended Summary
This function does not import sparse if it has not already been imported and is therefore cheap to use.
See also
Aliases
-
scipy.differentiate.xpx._delegation._funcs._compat.is_pydata_sparse_array