scipy.fft 链接到 numpy.fft.fftpack.fft 的事实是否记录在案?
Is the fact that scipy.fft links to numpy.fft.fftpack.fft documented anywhere?
我找不到任何关于 scipy.fft
实际上是 link 到 numpy.fft.fftpack.fft
的官方文档。这是一个显示 link:
的 iPython 会话
In [1]: import scipy
In [2]: import numpy
In [3]: scipy.__version__
Out[3]: '0.19.0'
In [4]: numpy.__version__
Out[4]: '1.12.1'
In [5]: scipy.fft
Out[5]: <function numpy.fft.fftpack.fft>
我能找到的关于 scipy.fft
子模块的唯一提及是 this discussion on numpy-discussion and this discussion on SciPy's Github,两者似乎都暗示了这样一个事实,即当时实际上不存在这样的子模块。
scipy.__init__.py
文件有:
from numpy import *
from numpy.random import rand, randn
from numpy.fft import fft, ifft
from numpy.lib.scimath import *
__all__ += _num.__all__
__all__ += ['randn', 'rand', 'fft', 'ifft']
是的,是 documented:
Guidelines for importing functions from Scipy
The scipy namespace itself only contains functions imported from numpy. These functions still exist for backwards compatibility, but should be imported from numpy directly.
[...]
我找不到任何关于 scipy.fft
实际上是 link 到 numpy.fft.fftpack.fft
的官方文档。这是一个显示 link:
In [1]: import scipy
In [2]: import numpy
In [3]: scipy.__version__
Out[3]: '0.19.0'
In [4]: numpy.__version__
Out[4]: '1.12.1'
In [5]: scipy.fft
Out[5]: <function numpy.fft.fftpack.fft>
我能找到的关于 scipy.fft
子模块的唯一提及是 this discussion on numpy-discussion and this discussion on SciPy's Github,两者似乎都暗示了这样一个事实,即当时实际上不存在这样的子模块。
scipy.__init__.py
文件有:
from numpy import *
from numpy.random import rand, randn
from numpy.fft import fft, ifft
from numpy.lib.scimath import *
__all__ += _num.__all__
__all__ += ['randn', 'rand', 'fft', 'ifft']
是的,是 documented:
Guidelines for importing functions from Scipy
The scipy namespace itself only contains functions imported from numpy. These functions still exist for backwards compatibility, but should be imported from numpy directly.
[...]