Skip to main content

parallel_prefix_sum

Function parallel_prefix_sum 

Source
pub fn parallel_prefix_sum(data: &[u32]) -> Vec<u32>
Expand description

Exclusive prefix sum (scan) of data using rayon work-stealing.

Returns a Vec<u32> of the same length where output[i] = Σ data[0..i]. output[0] is always 0.