
    `id                     p    d dl Zd dlmZ d dlmZ 	 d dlZ	dZ
n# e$ r dZ
Y nw xY wej        e         Zd ZdS )    N)ndarray)spmatrixTFc                  d    | D ]'}t          |t          t          f          r	t          c S (t          S )a  Returns the array module for arguments.

    This function is used to implement CPU/GPU generic code. If at least one of
    the arguments is a :class:`cupy.ndarray` object, the :mod:`cupyx.scipy`
    module is returned.

    Args:
        args: Values to determine whether NumPy or CuPy should be used.

    Returns:
        module: :mod:`cupyx.scipy` or :mod:`scipy` is returned based on the
        types of the arguments.

    )
isinstance_ndarray	_spmatrix_cupyx_scipy_scipy)argsargs     h/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/cupyx/scipy/__init__.pyget_array_moduler      s@         cHi011 	 	 M    )sys_sys
cupy._corer   r   cupyx.scipy.sparse._baser   r   scipyr
   _scipy_availableImportErrormodules__name__r	   r    r   r   <module>r      s        * * * * * * : : : : : :    |H%    s    ##