Python Scipy FFT原始功能在哪里?
我尝试研究Scipy FFT功能,以解释FFT如何向学生使用。
但是,Scipy文件中的FFT函数为空!它在哪里 ?我想念什么?
当您转到Scipy软件包目录时 - > FFT-> _basic.py fft函数是一个:
def _dispatch(func):
"""
Function annotation that creates a uarray multimethod from the function
"""
return generate_multimethod(func, _x_replacer, domain="numpy.scipy.fft")
@_dispatch
def fft(x, n=None, axis=-1, norm=None, overwrite_x=False, workers=None, *,
plan=None):
"""
Compute the 1-D discrete Fourier Transform.
This function computes the 1-D *n*-point discrete Fourier
Transform (DFT) with the efficient Fast Fourier Transform (FFT)
algorithm [1]_.
...
a big comment
...
"""
return (Dispatchable(x, np.ndarray),)
产生FFT的代码行在哪里?
I try to investigate the Scipy fft function to explain how fft work to students.
BUT, the fft function in scipy file is empty ! where is it ? What am I missing ?
When you go to the scipy package directory -> fft -> _basic.py the fft function is this one :
def _dispatch(func):
"""
Function annotation that creates a uarray multimethod from the function
"""
return generate_multimethod(func, _x_replacer, domain="numpy.scipy.fft")
@_dispatch
def fft(x, n=None, axis=-1, norm=None, overwrite_x=False, workers=None, *,
plan=None):
"""
Compute the 1-D discrete Fourier Transform.
This function computes the 1-D *n*-point discrete Fourier
Transform (DFT) with the efficient Fast Fourier Transform (FFT)
algorithm [1]_.
...
a big comment
...
"""
return (Dispatchable(x, np.ndarray),)
Where are the lines of code that produce the fft ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论