Function convolution_lcm

Source
pub fn convolution_lcm<T>(f: Vec<T>, g: Vec<T>) -> Vec<T>
where T: Copy + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
Expand description

$\mathtt{a_{\mathtt{lcm} (i, j)}} = \sum \mathtt{f_{i}} * \mathtt{g_{j}}$を満たすaを求める。

aの長さは|f| = |g|と等しい。