1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! FFT kernels using Stockham autosort algorithm
//!
//! This module provides CPU implementations of FFT operations.
//! The Stockham algorithm is used for its:
//! - No bit-reversal permutation (Cooley-Tukey's main bottleneck)
//! - Sequential memory access patterns
//! - Natural double-buffering
//!
//! # Algorithm: Stockham Radix-2 FFT
//!
//! ```text
//! For each stage s = 0..log2(N):
//! half_m = 2^s
//! m = 2^(s+1)
//! For each group g = 0..(N/m):
//! For each butterfly b = 0..half_m:
//! twiddle = exp(sign * 2πi * b / m)
//! even = src[g * half_m + b]
//! odd = src[N/2 + g * half_m + b] * twiddle
//! dst[g * m + b] = even + odd
//! dst[g * m + b + half_m] = even - odd
//! swap(src, dst)
//! ```
pub use ;
pub use ;
pub use ;