Skip to main content

scalar_sum

Function scalar_sum 

Source
pub fn scalar_sum(
    a: f64,
    b: f64,
    h: &mut [f64],
) -> Result<usize, ExpansionError>
Expand description

Exact sum of two scalars, written into a 2-element buffer.

Convenience wrapper around two_sum. h must have length >= 2.