pub fn modwt_convolve_single( buffer: &[f64], write_pos: usize, capacity: usize, h_filter: &[f64], g_filter: &[f64], dilation: usize, ) -> (f64, f64)