PyFFTW perfomance on multidimensional arrays
问题 I have a nD array, say of dimensions: (144, 522720) and I need to compute its FFT. PyFFTW seems slower than numpy and scipy , that it is NOT expected. Am I doing something obviously wrong? Below is my code import numpy import scipy import pyfftw import time n1 = 144 n2 = 522720 loops = 2 pyfftw.config.NUM_THREADS = 4 pyfftw.config.PLANNER_EFFORT = 'FFTW_ESTIMATE' # pyfftw.config.PLANNER_EFFORT = 'FFTW_MEASURE' Q_1 = pyfftw.empty_aligned([n1, n2], dtype='float64') Q_2 = pyfftw.empty_aligned(