Skip to main content

par_fill

Function par_fill 

Source
pub(crate) fn par_fill<T: Send>(
    out: &mut [T],
    f: impl Fn(usize) -> T + Sync + Send,
)
Expand description

out[i] = f(i) for every i (over threads with the parallel feature)