pub fn parallel_map_reduce<T: Send + Sync>(
data: &[T],
map_fn: impl Fn(&T) -> f64 + Sync + Send,
identity: f64,
reduce_fn: impl Fn(f64, f64) -> f64 + Sync + Send,
) -> f64Expand description
Parallel map-reduce: map each element, then reduce results.
Combines mapping and reduction in a single parallel pass.