PlayerFlat
 Tudo Classes Funções
fft.h
1 #ifndef FFT_H
2 #define FFT_H
3 
4 #include <complex>
5 #include <iostream>
6 #include <valarray>
7 
8 const double PI = 3.141592653589793238460;
9 
10 typedef std::complex<double> Complex;
11 typedef std::valarray<Complex> CArray;
12 
13 // Cooley–Tukey FFT (in-place)
14 
15 void fft(CArray& x);
16 
17 void ifft(CArray& x);
18 
19 #endif