pub struct OnlineExactDot<F> { /* private fields */ }Expand description
Calculates the dot product using product transformation and OnlineExactSum
§Examples
use accurate::traits::*;
use accurate::dot::OnlineExactDot;
let d = OnlineExactDot::zero() + (1.0, 1.0) + (2.0, 2.0) + (3.0, 3.0);
assert_eq!(14.0f64, d.dot());Trait Implementations§
Source§impl<F> Add<(F, F)> for OnlineExactDot<F>
impl<F> Add<(F, F)> for OnlineExactDot<F>
Source§impl<F> Add for OnlineExactDot<F>
impl<F> Add for OnlineExactDot<F>
Source§impl<F: Clone> Clone for OnlineExactDot<F>
impl<F: Clone> Clone for OnlineExactDot<F>
Source§fn clone(&self) -> OnlineExactDot<F>
fn clone(&self) -> OnlineExactDot<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug> Debug for OnlineExactDot<F>
impl<F: Debug> Debug for OnlineExactDot<F>
Source§impl<F> DotAccumulator<F> for OnlineExactDot<F>
impl<F> DotAccumulator<F> for OnlineExactDot<F>
Source§impl<F> From<F> for OnlineExactDot<F>where
OnlineExactSum<F>: SumAccumulator<F>,
impl<F> From<F> for OnlineExactDot<F>where
OnlineExactSum<F>: SumAccumulator<F>,
impl<F> Send for OnlineExactDot<F>where
F: Send,
Auto Trait Implementations§
impl<F> Freeze for OnlineExactDot<F>
impl<F> RefUnwindSafe for OnlineExactDot<F>where
F: RefUnwindSafe,
impl<F> Sync for OnlineExactDot<F>where
F: Sync,
impl<F> Unpin for OnlineExactDot<F>
impl<F> UnwindSafe for OnlineExactDot<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Acc, F> ParallelDotAccumulator<F> for Acc
impl<Acc, F> ParallelDotAccumulator<F> for Acc
Source§fn into_consumer(self) -> DotConsumer<Self>
fn into_consumer(self) -> DotConsumer<Self>
Turns an accumulator into a consumer