Skip to main content

Module optimized_split_radix

Module optimized_split_radix 

Source
Expand description

The split-radix FFT (Yavne, 1968; Duhamel and Hollmann, 1984), written for study.

A radix-2 step splits the input into even and odd samples. Split radix splits the odd samples once more, into those at 4m + 1 and 4m + 3: with U the FFT of length n/2 of the even samples and Z, Z' the FFTs of length n/4 of the two odd subsequences,

X_k = U_k + ωᵏ Z_k + ω³ᵏ Z'_k, X_{k+n/2} = U_k − (ωᵏ Z_k + ω³ᵏ Z'_k), X_{k+n/4} = U_{k+n/4} − i (ωᵏ Z_k − ω³ᵏ Z'_k), X_{k+3n/4} = U_{k+n/4} + i (ωᵏ Z_k − ω³ᵏ Z'_k)

for 0 ≤ k < n/4 and ω = e^{−2πi/n} (the signs of i swap for the inverse transform). The even half needs no twiddle factors at this level, which is why split radix uses the fewest real operations of the classical power-of-two algorithms: about 4n log₂ n − 6n + 8 real additions and multiplications, against 5n log₂ n for radix 2.

This engine is a plain recursion over strided views of the input, with an exact twiddle table. Replacing an earlier engine of the same name, which (despite its name) was not a split-radix algorithm and returned wrong results; its tests computed the error without checking it.

See the book entry The fast Fourier transform.

Structs§

OptimizedSplitRadixFFT
A recursive split-radix FFT engine for power-of-two sizes.