3
® h  ã               @   sâ   d Z ddddddddd	d
dddddddddgZddljZddljZddlm	Z	 ddl
Z
ejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZi Zdd„ Zdd„ Zdd„ ZdS )ay  
Aliases for functions which may be accelerated by Scipy.

Scipy_ can be built to use accelerated or otherwise improved libraries
for FFTs, linear algebra, and special functions. This module allows
developers to transparently support these accelerated functions when
scipy is available but still support users who have only installed
NumPy.

.. _Scipy : https://www.scipy.org

ÚfftÚifftÚfftnÚifftnÚfft2Úifft2ÚnormÚinvÚsvdÚsolveÚdetÚeigÚeigvalsÚeighÚeigvalshÚlstsqÚpinvÚcholeskyÚi0é    N)r   c             C   s:   | t krtdj| ƒƒ‚tjdƒj}||  t| < ||| < d S )Nz{} not a dual function.r   )Ú__all__Ú
ValueErrorÚformatÚsysÚ	_getframeÚ	f_globalsÚ_restore_dict)ÚnameÚfuncÚf© r   ú+/tmp/pip-build-fibhr3ey/numpy/numpy/dual.pyÚregister_func2   s
    r!   c             C   sL   | t krtdj| ƒƒ‚yt|  }W n tk
r6   d S X |tjdƒj| < d S )Nz{} not a dual function.r   )r   r   r   r   ÚKeyErrorr   r   r   )r   Úvalr   r   r    Úrestore_func9   s    r$   c              C   s   xt jƒ D ]} t| ƒ q
W d S )N)r   Úkeysr$   )r   r   r   r    Úrestore_allC   s    r&   ) Ú__doc__r   Znumpy.linalgZlinalgZlinpkgZ	numpy.fftr   ZfftpkgZ	numpy.libr   r   r   r   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r!   r$   r&   r   r   r   r    Ú<module>   s:   


