pub struct NaiveDot<F>(/* private fields */);Expand description
Naive floating point dot product
§Examples
use accurate::traits::*;
use accurate::dot::NaiveDot;
let d = NaiveDot::zero() + (1.0, 1.0) + (2.0, 2.0) + (3.0, 3.0);
assert_eq!(14.0f64, d.dot());Trait Implementations§
Source§impl<F> DotAccumulator<F> for NaiveDot<F>where
F: Float,
impl<F> DotAccumulator<F> for NaiveDot<F>where
F: Float,
impl<F: Copy> Copy for NaiveDot<F>
impl<F> Send for NaiveDot<F>where
F: Send,
Auto Trait Implementations§
impl<F> Freeze for NaiveDot<F>where
F: Freeze,
impl<F> RefUnwindSafe for NaiveDot<F>where
F: RefUnwindSafe,
impl<F> Sync for NaiveDot<F>where
F: Sync,
impl<F> Unpin for NaiveDot<F>where
F: Unpin,
impl<F> UnwindSafe for NaiveDot<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