kopia lustrzana https://github.com/kosme/arduinoFFT
Avoid double imaginary swap on COMPLEX_INPUT and Reverse direction
rodzic
f67d6797b4
commit
6948a41472
|
@ -86,7 +86,9 @@ void ArduinoFFT<T>::compute(T *vReal, T *vImag, uint_fast16_t samples,
|
||||||
swap(&vImag[i], &vImag[j]);
|
swap(&vImag[i], &vImag[j]);
|
||||||
#endif
|
#endif
|
||||||
if (dir == FFTDirection::Reverse)
|
if (dir == FFTDirection::Reverse)
|
||||||
|
#ifndef COMPLEX_INPUT
|
||||||
swap(&vImag[i], &vImag[j]);
|
swap(&vImag[i], &vImag[j]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
uint_fast16_t k = (samples >> 1);
|
uint_fast16_t k = (samples >> 1);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue