Skip to main content

reduce_broadcast

Function reduce_broadcast 

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

Reduce data to a scalar and broadcast the result back to all positions.

Mimics the GPU pattern: reduce in shared memory → broadcast from lane 0.