Skip to main content

next_fast_len

Function next_fast_len 

Source
pub fn next_fast_len(target: usize, real: bool) -> usize
Expand description

The smallest length ≥ target whose prime factors are all small, which FFTs handle fastest (SciPy’s next_fast_len): 2, 3 and 5 for real transforms (real = true), and also 7 and 11 for complex ones. Found by enumerating the products of powers of the allowed primes.