What is the difference between numpy.fft and scipy.fftpack?

后端 未结 3 1825
面向向阳花
面向向阳花 2020-12-24 04:41

Is the later just a synonym of the former, or are they two different implementations of FFT? Which one is better?

3条回答
  •  忘掉有多难
    2020-12-24 05:18

    Looking at the github respositories for each, scipy is not just importing numpy's version and renaming it (although it does borrow some functionality). You'll have to dig into the code if you want to discern the difference in implementations since the documentation doesn't make a direct comparison.

    https://github.com/numpy/numpy/tree/master/numpy/fft

    https://github.com/scipy/scipy/tree/master/scipy/fftpack

提交回复
热议问题