3
O้d  ใ               @   sฦ  d dl ZG dd dZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZ	eejjdZ
eejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeejjdZeej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   ๚P/var/www/html/virt/lib64/python3.6/site-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| j}|d k	r |||S tS )N)ฺglobalsฺgetr   ฺNotImplemented)ฺmethodr   r   ฺfnr   r   r   ฺ__ua_function__5   s    r   ) Znumpyฺnpr   ฺrandomZfftZfft2ZfftnZifftZifft2ZifftnZrfftZrfft2ZrfftnZirfftZirfft2ZirfftnZhfftZhfft2ZhfftnZihfftZihfft2ZihfftnฺdctZidctZdctnZidctnฺdstZidstZdstnZidstnZ__ua_domain__r   r   r   r   r   ฺ<module>   s:   