Skip to main content

fft_convolve

Function fft_convolve 

Source
pub fn fft_convolve<T: IsAnalytic>(
    in1: &[T],
    in2: &[T],
    mode: ConvolveMode,
) -> Result<Vec<T>, ErrorsJSL>
Expand description

1D convolution of in1 and in2 computed with FFTs.

mode selects the output extent exactly as for convolve (Full, Same = the size of in1, Valid). The result matches direct convolution to rounding error.