Skip to content

num::spectral::fft

Defined in header <spectral/fft.hpp>

void fft(const vec<cplx> &in, vec<cplx> &out, fft_backend b = default_fft_backend);

Compute the fast Fourier transform (FFT): \(X_k = \sum_{j=0}^{n-1} x_j e^{-2\pi i j k / n}\).