Browse Source

same array size for in- and output in inverse fft function from fftw3

pre-master-46
dwarning 3 years ago
committed by Holger Vogt
parent
commit
42b803e5c2
  1. 2
      src/maths/cmaths/cmath4.c

2
src/maths/cmaths/cmath4.c

@ -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…
Cancel
Save