+
    nDj                     6    ^ RI Ht RR.t ! R R]4      tR tR# )    )ABC	SparseABCissparsec                       ] tR t^tRtR# )r    N)__name__
__module____qualname____firstlineno____static_attributes__r       L/data/cameron/venvs/s3viz/lib/python3.14/site-packages/scipy/_lib/_sparse.pyr   r      s    r   c                "    \        V \        4      # )a  Is `x` either sparse array or sparse matrix type?

Parameters
----------
x : object
    object to check for being a sparse array or a sparse matrix

Returns
-------
bool
    True if `x` is a sparse array or a sparse matrix, False otherwise

Notes
-----
Use `sp.sparse.isspmatrix(x)` or `isinstance(x, sp.sparse.sparray)` to
check between sparray or spmatrix.
Use `a.format` to check the sparse format, e.g. `a.format == 'csr'`.

Examples
--------
>>> import numpy as np
>>> from scipy.sparse import csr_array, csr_matrix, issparse
>>> issparse(csr_matrix([[5]]))
True
>>> issparse(csr_array([[5]]))
True
>>> issparse(np.array([[5]]))
False
>>> issparse(5)
False
)
isinstancer   )xs   &r   r   r   
   s    @ a##r   N)abcr   __all__r   r   r   r   r   <module>r      s#    

#	 	 $r   