Example #1
0
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();
}
Example #2
0
// 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();
}
Example #3
0
void ifft(CArray& x){
    x = x.apply(std::conj);
    fft(x);
    x= x.apply(std::conj);
    x /= x.size();
}