§
    fŠtjk  ã                   ó<   — d dl mZ ddgZ G d„ de¦  «        Zd„ ZdS )é    )ÚABCÚ	SparseABCÚissparsec                   ó   — e Zd ZdS )r   N)Ú__name__Ú
__module__Ú__qualname__© ó    úP/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/scipy/_lib/_sparse.pyr   r      s   € € € € € Ø€Dr   c                 ó,   — t          | t          ¦  «        S )aÏ  Is `x` of a sparse array or sparse matrix type?

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

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

    Notes
    -----
    Use `isinstance(x, sp.sparse.sparray)` to check between an array or matrix.
    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      sd   ðØ Ð Ð Ð Ð Ð à˜
Ð
#€ð	ð 	ð 	ð 	ð 	�ñ 	ô 	ð 	ð$ð $ð $ð $ð $r   