Skip to main content

dot2

Function dot2 

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

xᵀy of f64 vectors as a double-double (Dot2, over W = 4 lanes: Algorithm C of Chapter 11.5): |result − xᵀy| ≤ γ²_{n+5} |x|ᵀ|y| + n η/2 barring overflow. Overflow includes an intermediate step of a 2Sum whose first operand is ±Ω (invariant T1 of Chapter 11.1): there the result may be finite with a relative error of order u; dot2_err reports that case with β = +∞. Panics if the lengths differ.