Convolution of two fft function
问题 For convolution theorem F(x.y) = F(x)*F(y) However after implement it on python x = np.array([0,0,0,0,1, 2, 3, 4, 0 ,0,0,0]) y = np.array([0,0,0,0,-3, 5, -4, 0, 0, 0,0,0]) xy = x*y inverse_fft_xy = np.fft.ifft(np.convolve(np.fft.fft(x),np.fft.fft(y))) Will yield xy array([ 0, 0, 0, 0, -3, 10, -12, 0, 0, 0, 0, 0]) inverse_fft_xy array([ 0.00000000e+00, -8.70383905e-01, 1.65925305e-02, -8.90888514e-01, 7.07822398e-02, -8.80447879e-01, 1.19687210e-01, 3.09247006e+00, -9.54481834e+00, -5