[go: up one dir, main page]

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

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> Add<(F, F)> for Dot2<F> where
    F: Float + TwoProduct + TwoSum
[src]

type Output = Self

The resulting type after applying the + operator.

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

type Output = Self

The resulting type after applying the + operator.

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Acc, F> ParallelDotAccumulator<F> for Acc where
    Acc: DotAccumulator<F, Output = Acc> + Add<Acc> + Send
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.