void FftLib::ifft(CArray &signal) { // conjugate the complex numbers signal = signal.apply(std::conj); // forward fft fft(signal); // conjugate the complex numbers again signal = signal.apply(std::conj); // scale the numbers signal /= signal.size(); }
// inverse fft (in-place) inline void ifft(CArray& x) { // conjugate the complex numbers x = x.apply(std::conj); // forward fft fft( x ); // conjugate the complex numbers again x = x.apply(std::conj); // scale the numbers x /= x.size(); }
void ifft(CArray& x){ x = x.apply(std::conj); fft(x); x= x.apply(std::conj); x /= x.size(); }