FFT Test
FFT Test
FFT Test
#include <cmath>
#include <utility>
if (N > 1) {
for (int p = 0; p < m; p++) {
const complex_t wp = complex_t(cos(p*theta0), -sin(p*theta0));
const complex_t a = x[q + p + 0];
const complex_t b = x[q + p + m];
x[q + p + 0] = a + b;
x[q + p + m] = (a - b) * wp;
}
F(N/2, q + 0, x); // even position components
F(N/2, q + m, x); // odd position components
}
}