pub fn exclusive_scan(data: &[f64]) -> Vec<f64>
Parallel prefix sum (scan) on a slice of f64 values.
Returns a new vector where result[i] = sum(data[0..i]). This is the exclusive scan variant.
result[i] = sum(data[0..i])