bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_compat / common / _helpers / is_pydata_sparse_array
function
scipy._external.array_api_compat.common._helpers:is_pydata_sparse_array
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.sparse.linalg._interface.is_pydata_sparse_array