Skip to main content

gpu_sum

Function gpu_sum 

Source
pub fn gpu_sum(data: &[f64]) -> f64
Expand description

Compute the sum of all elements in a slice (parallel reduction mock).

Returns 0.0 for an empty slice.