gpt4 book ai didi

python - scipy.fft 链接到 numpy.fft.fftpack.fft 的事实是否记录在任何地方?

转载 作者:行者123 更新时间:2023-12-01 02:51:47 32 4
gpt4 key购买 nike

我找不到任何官方文档来证明 scipy.fft 实际上是 numpy.fft.fftpack.fft 的链接。这是显示链接的 iPython session :

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-discussionthis discussion on SciPy's Github ,这两者似乎都暗示了这样一个事实:当时实际上不存在这样的子模块。

最佳答案

是的,是 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.

[...]

关于python - scipy.fft 链接到 numpy.fft.fftpack.fft 的事实是否记录在任何地方?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44685156/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com