U
    g                     @   s   d Z ddlZejdedd dddd	d
ddddddddddddddgZddlmZ ddlm	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 ) a#  
.. deprecated:: 1.20

*This module is deprecated.  Instead of importing functions from*
``numpy.dual``, *the functions should be imported directly from NumPy
or SciPy*.

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

    NzlThe module numpy.dual is deprecated.  Instead of using dual, use the functions directly from numpy or scipy.   )category
stacklevelfftifftfftnifftnfft2ifft2norminvsvdsolvedeteigeigvalseigheigvalshlstsqpinvcholeskyi0)r   c                 C   s:   | t krtd| t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-2wnnwvus/numpy/dual.pyregister_func@   s
    r%   c                 C   sN   | t krtd| zt|  }W n tk
r8   Y d S X |tdj| < d S r   )r   r   r   r   KeyErrorr   r   r   )r    valr#   r#   r$   restore_funcG   s    r(   c                  C   s   t  D ]} t|  qd S )N)r   keysr(   )r    r#   r#   r$   restore_allQ   s    r*   )#__doc__warningswarnDeprecationWarningr   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\   
           
