Skip to main content

dot2_err

Function dot2_err 

Source
pub fn dot2_err(x: &[f64], y: &[f64]) -> (DoubleDouble, f64)
Expand description

As dot2, with a rigorous bound: returns (r, β) with |xᵀy − r| ≤ β (Dot2Err; step C5 of Chapter 11.5 and its proof). β = +∞ when a hypothesis fails (overflow — of an intermediate step of a 2Sum at ±Ω too —, NaN, 2(n + 3)u ≥ 1): invariant C3. Panics if the lengths differ.