Skip to main content

probe_sum

Function probe_sum 

Source
pub fn probe_sum(values: &[f64]) -> f64
Expand description

Sum a slice of f64.

This exists as an installation probe: it is the smallest call that proves the Python โ†’ PyO3 โ†’ Rust path is wired end to end, and it backs fcmaes_rust._fcmaes_ext._phase1_probe_sum. It is not a numerical reduction API โ€” it performs no compensated summation and applications should use Iterator::sum directly.

ยงExamples

assert_eq!(fcmaes_core::probe_sum(&[1.0, 2.0, 3.5]), 6.5);
assert_eq!(fcmaes_core::probe_sum(&[]), 0.0);