pub fn unique_roots(
p: &[Complex<f64>],
tol: f64,
rtype: RootType,
) -> (Vec<Complex<f64>>, Vec<usize>)Expand description
Groups nearly equal roots (SciPy’s unique_roots): going through p in order, each root not
yet used takes every unused root within distance tol of it into its group; the group is
represented by its mean, minimum or maximum. Returns the representatives and multiplicities.