pytorch_forecasting.utils.
next_fast_len
Returns the next largest number n >= size whose prime factors are all 2, 3, or 5. These sizes are efficient for fast fourier transforms. Equivalent to scipy.fftpack.next_fast_len().
n >= size
scipy.fftpack.next_fast_len()
Implementation from pyro
size (int) – A positive number.
A possibly larger number.