pub fn segmented_exclusive_scan(data: &[f64], segment_ids: &[usize]) -> Vec<f64>Expand description
Segmented prefix sum: performs exclusive scans within each segment.
segment_ids assigns each element to a segment. When the segment ID
changes, the accumulator resets. Segments must be contiguous.