same array size for in- and output in inverse fft function from fftw3
This commit is contained in:
parent
40a89b16e6
commit
e83fae11bc
|
|
@ -933,7 +933,7 @@ cx_ifft(void *data, short int type, int length, int *newlength, short int *newty
|
|||
printf("IFFT: Frequency span: %g Hz, input length: %d\n", 1/span*length, length);
|
||||
printf("IFFT: Time resolution: %g s, output length: %d\n", span/(tpts-1), tpts);
|
||||
|
||||
in = fftw_malloc(sizeof(fftw_complex) * (unsigned int) length);
|
||||
in = fftw_malloc(sizeof(fftw_complex) * (unsigned int) tpts);
|
||||
out = fftw_malloc(sizeof(fftw_complex) * (unsigned int) tpts);
|
||||
|
||||
for (i = 0; i < length; i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue