Mirrors the C# Fourier.FFT: an in-place complex FFT on data packed as
[re0, im0, re1, im1, ...]; length(x) / 2 must be a power of two.
Examples
dft(c(1, 0, 2, 0, 3, 0, 4, 0))
#> [1] 10 0 -2 -2 -2 0 -2 2
Mirrors the C# Fourier.FFT: an in-place complex FFT on data packed as
[re0, im0, re1, im1, ...]; length(x) / 2 must be a power of two.
dft(c(1, 0, 2, 0, 3, 0, 4, 0))
#> [1] 10 0 -2 -2 -2 0 -2 2