Skip to main content

inclusive_scan_cpu

Function inclusive_scan_cpu 

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

Sequential inclusive prefix scan (Σ) on f64 elements.

Returns a Vec<f64> where out[i] = Σ_{j≤i} data[j].