pub fn parallel<T: RealScalar>(
next_root_fun: fn(poly: &Poly<T>, epsilon: T, max_iter: Option<usize>, initial_guess: Option<Complex<T>>) -> Result<(Vec<Complex<T>>, u128), Error<Vec<Complex<T>>>>,
poly: &mut Poly<T>,
epsilon: Option<T>,
max_iter: Option<usize>,
initial_guesses: &[Complex<T>],
) -> Result<T>
Expand description
Run multiple single-root root finders in parallel.
§Errors
Passes through whichever errors the passed closure next_root_fun
returned.
§Panics
If T
is any primitive type, this function does not panic. However, if T
does not implement num::FromPrimitive::from_f64
correctly, this function might panic under certain circumstances (casting of extreme values, usually)\n\n