pub fn gpu_prefix_sum(data: &[f64]) -> Vec<f64>
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.
result[i] = sum(data[0..i])
Vec