pub fn parallel_scan<T, F>(items: &[T], init: T, op: F) -> Vec<T>Expand description
Parallel scan (prefix sum) operation
Computes cumulative operation (like cumulative sum) in parallel. Returns a vector where each element is the result of applying the operation to all preceding elements including itself.