Skip to main content

gpu_prefix_sum

Function gpu_prefix_sum 

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

Compute the exclusive prefix scan (prefix sum) of a slice.

result[i] = sum(data[0..i]). The output length equals the input length. Returns an empty Vec for an empty input.