B @`@sdZddlZejdedddddd d d d d dddddddddddgZddlmZddlm Z ddl m Z ddl Z e j Z e jZe jZe jZe jZe jZejZejZejZejZejZejZejZejZejZejZejZejZiZddZ ddZ!ddZ"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 stacklevelfftifftfftnifftnfft2ifft2norminvsvdsolvedeteigeigvalseigheigvalshlstsqpinvcholeskyi0)rcCs:|tkrtd|tdj}||t|<|||<dS)Nz{} not a dual function.r)__all__ ValueErrorformatsys _getframe f_globals _restore_dict)namefuncfr"./tmp/pip-unpacked-wheel-ecq9wray/numpy/dual.py register_func@s   r$cCsL|tkrtd|y t|}Wntk r6dSX|tdj|<dS)Nz{} not a dual function.r)rrrrKeyErrorrrr)rvalr"r"r# restore_funcGs r'cCsxtD] }t|q WdS)N)rkeysr')rr"r"r# restore_allQsr))#__doc__warningswarnDeprecationWarningrZ numpy.linalgZlinalgZlinpkgZ numpy.fftrZfftpkgZ numpy.librrrrrr r r r r rrrrrrrrrrr$r'r)r"r"r"r#sB