Skip to content

num::spectral::dst_check_size

Defined in header <spectral/dst.hpp>

void dst_check_size(int N);

Reject a length the odd-extension route cannot transform.

The extension has length 2(N+1), and the radix-2 FFT needs that to be a power of two, so N has to be one less than a power of two.