[go: up one dir, main page]

Dot2

Type Alias Dot2 

Source
pub type Dot2<F> = DotK<F, NaiveSum<F>>;
Expand description

DotK with two cascaded accumulators

§Examples

use accurate::traits::*;
use accurate::dot::Dot2;

let d = Dot2::zero() + (1.0, 1.0) + (2.0, 2.0) + (3.0, 3.0);
assert_eq!(14.0f64, d.dot());

§References

Based on Ogita, Rump and Oishi 05

Aliased Type§

pub struct Dot2<F> { /* private fields */ }