Skip to main content

parallel_reduce_f64

Function parallel_reduce_f64 

Source
pub fn parallel_reduce_f64(
    data: &[f64],
    identity: f64,
    f: impl Fn(f64, f64) -> f64 + Sync + Send,
) -> f64
Expand description

Reduces data to a single value using f, starting from identity.

Sequential fallback – the API is parallel-ready (requires Sync + Send).