o
    Eb                     @   s  d dl ZG dd dZeejdZeejdZeejdZeejdZeejdZeejdZ	eejdZ
eejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZeejdZdZdd ZdS )    Nc                   @   s   e Zd ZdddZdd ZdS )_MockFunctionNc                 C   s   d| _ || _g i f| _d S )Nr   )number_callsreturn_value	last_args)selfr    r   >/usr/lib/python3/dist-packages/scipy/fft/tests/mock_backend.py__init__   s   z_MockFunction.__init__c                 O   s   |  j d7  _ ||f| _| jS )N   )r   r   r   )r   argskwargsr   r   r   __call__	   s   
z_MockFunction.__call__N)__name__
__module____qualname__r	   r   r   r   r   r   r      s    
r   
   znumpy.scipy.fftc                 C   s(   t  | j}|d ur||i |S tS r   )globalsgetr   NotImplemented)methodr   r   fnr   r   r   __ua_function__5   s   r   ) ZnumpyZnpr   ZrandomZfftZfft2ZfftnZifftZifft2ZifftnZrfftZrfft2ZrfftnZirfftZirfft2ZirfftnZhfftZhfft2ZhfftnZihfftZihfft2ZihfftnZdctZidctZdctnZidctndstZidstZdstnZidstnZ__ua_domain__r   r   r   r   r   <module>   s<    