且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

奇怪的Numpy FFT性能

更新时间:2021-06-30 23:17:07

分而治之FFT算法,例如

Divide-and-conquer FFT algorithms, such as Cooley-Tukey, work much better the more factors the input length has. Powers of 2 work especially well, whereas primes (like 165037) require alternate, slower implementations. If you can pad your input to a power-of-2 length, you may be able to drastically speed up slow FFTs.