[−][src]Struct accurate::dot::Dot2
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]
F: Float + TwoProduct + TwoSum,
type Output = Self
The resulting type after applying the + operator.
fn add(self, (a, b): (F, F)) -> Self[src]
impl<F> Add<Dot2<F>> for Dot2<F> where
F: Float + TwoSum, [src]
F: Float + TwoSum,
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Self::Output[src]
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]
F: Float + TwoProduct + TwoSum,
fn dot(self) -> F[src]
fn zero() -> Self where
F: Zero, [src]
F: Zero,
fn absorb<I>(self, it: I) -> Self where
I: IntoIterator<Item = (F, F)>, [src]
I: IntoIterator<Item = (F, F)>,
impl<F> From<F> for Dot2<F> where
F: Float, [src]
F: Float,
impl<F> Send for Dot2<F> where
F: Send, [src]
F: Send,
Auto Trait Implementations
impl<F> RefUnwindSafe for Dot2<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Sync for Dot2<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Dot2<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Dot2<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<Acc, F> ParallelDotAccumulator<F> for Acc where
Acc: DotAccumulator<F, Output = Acc> + Add<Acc> + Send, [src]
Acc: DotAccumulator<F, Output = Acc> + Add<Acc> + Send,
fn into_consumer(self) -> DotConsumer<Self>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,