pub fn dft_direct(
input: &[f32],
output: &mut [f32],
inverse: bool,
) -> Result<(), AudioError>Expand description
Direct DFT (or inverse DFT) of arbitrary length N.
input and output are interleaved complex [re, im, …] of length 2 * N
and must be distinct buffers of equal length. Forward uses e^{-j2πkn/N};
when inverse is true it uses e^{+j2πkn/N} and normalises by 1/N, so a
forward followed by an inverse round-trips the signal.
Returns AudioError::InvalidParameter if the lengths differ, are odd, or
are zero.