a
    hÝEb¦  ã                   @   sÜ   d Z ddlZejdedd� g d¢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 v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#   úJ/home/ja/django-apps/lartica_env/lib/python3.9/site-packages/numpy/dual.pyÚregister_func@   s
    r%   c                 C   sL   | t vrtd | ¡ƒ‚zt|  }W n ty6   Y d S 0 |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@   ý

