[go: up one dir, main page]

Struct accurate::dot::Dot2 [] [src]

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

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

Trait Implementations

impl<F: Copy> Copy for Dot2<F>
[src]

impl<F: Clone> Clone for Dot2<F>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<F: Debug> Debug for Dot2<F>
[src]

[src]

Formats the value using the given formatter. Read more

impl<F> DotAccumulator<F> for Dot2<F> where
    F: Float + TwoProduct + TwoSum
[src]

[src]

The dot product of all terms accumulated so far

[src]

Initial value for an accumulator

[src]

Absorb the items of an iterator into the accumulator Read more

impl<F> Add<(F, F)> for Dot2<F> where
    F: Float + TwoProduct + TwoSum
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<F> From<F> for Dot2<F> where
    F: Float
[src]

[src]

Performs the conversion.

impl<F> Add for Dot2<F> where
    F: Float + TwoSum
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<F> Send for Dot2<F> where
    F: Send
[src]

Auto Trait Implementations

impl<F> Sync for Dot2<F> where
    F: Sync