How should I multiply scipy.fftpack output vectors together?
问题 The scipy.fftpack.rfft function returns the DFT as a vector of floats, alternating between the real and complex part. This means to multiply to DFTs together (for convolution) I will have to do the complex multiplication "manually" which seems quite tricky. This must be something people do often - I presume/hope there is a simple trick to do this efficiently that I haven't spotted? Basically I want to fix this code so that both methods give the same answer: import numpy as np import scipy