3
¨K´^U  ã               @   sö   d Z ddlmZmZm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

é    )ÚdivisionÚabsolute_importÚprint_functionÚfftÚifftÚfftnÚifftnÚfft2Úifft2ÚnormÚinvÚsvdÚsolveÚdetÚeigÚeigvalsÚeighÚeigvalshÚlstsqÚpinvÚcholeskyÚi0N)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-unpacked-wheel-4ferv4jf/numpy/dual.pyÚregister_func4   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_func;   s    r'   c              C   s   xt jƒ D ]} t| ƒ q
W d S )N)r   Úkeysr'   )r   r"   r"   r#   Úrestore_allE   s    r)   )$Ú__doc__Ú
__future__r   r   r   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<   


