o 6a@sdZddlZejdeddgdZddlmZddlm Z ddl m Z ddl Z e j Z e jZe jZe jZe jZe jZejZejZejZejZejZejZejZejZejZejZejZejZiZdd Z d d Z!d d Z"dS)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)fftifftfftnifftnfft2ifft2norminvsvdsolvedeteigeigvalseigheigvalshlstsqpinvcholeskyi0)rcCs:|tvr td|tdj}||t|<|||<dSNz{} not a dual function.r)__all__ ValueErrorformatsys _getframe f_globals _restore_dict)namefuncfr#,/usr/lib/python3/dist-packages/numpy/dual.py register_func@s    r%cCsL|tvr td|zt|}Wn tyYdSw|tdj|<dSr)rrrrKeyErrorrrr)r valr#r#r$ restore_funcGs  r(cCstD]}t|qdS)N)rkeysr()r r#r#r$ restore_allQs  r*)#__doc__warningswarnDeprecationWarningr numpy.linalglinalglinpkg numpy.fftrfftpkg numpy.librrrrrr r r r r rrrrrrrrrrr%r(r*r#r#r#r$sB