FFTW and memory leak

Started by alexryu in comp.dsp13 years ago 3 replies

Hello I have a double array x of length NUMP * NUMT, which is NUMP signals, each of length NUMT. I want to take the DFT of each signal, and put...

Hello I have a double array x of length NUMP * NUMT, which is NUMP signals, each of length NUMT. I want to take the DFT of each signal, and put it into a complex double array y of length NUMP * NUMF = NUMP * (NUMT / 2 + 1). Here is my code: for (j = 0; j < NUMP; j++) { plan = fftw_plan_dft_r2c_1d(NUMT,x + j*NUMT, y + j*NUMF, FFTW_ESTIMATE); fftw_execute(plan); } fftw_destroy_plan(plan);


implementing convolution of real sequences using half length complex FFTs

Started by rimas in comp.dsp11 years ago 4 replies

Greetings, I'm stuck trying to figure out how to use half length complex FFTs to implement the convolution of two real sequences and could use...

Greetings, I'm stuck trying to figure out how to use half length complex FFTs to implement the convolution of two real sequences and could use some advice as I feel like I might be missing something (relatively) obvious. I'm trying to convolve two real valued sequences (of length N, zero padded to length 2N) using two complex-valued FFTs (of length N). I'm doing this in C using FFTW thou...