Struct accurate::dot::DotK
[−]
[src]
pub struct DotK<F, R> { /* fields omitted */ }Calculates a dot product using both product transformation and cascaded accumulators
See also Dot2... Dot9.
References
Based on Ogita, Rump and Oishi 05
Trait Implementations
impl<F: Copy, R: Copy> Copy for DotK<F, R>[src]
impl<F: Clone, R: Clone> Clone for DotK<F, R>[src]
fn clone(&self) -> DotK<F, R>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<F: Debug, R: Debug> Debug for DotK<F, R>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<F, R> DotAccumulator<F> for DotK<F, R> where
F: Float + TwoProduct + TwoSum,
R: SumAccumulator<F>, [src]
F: Float + TwoProduct + TwoSum,
R: SumAccumulator<F>,
fn dot(self) -> F[src]
The dot product of all terms accumulated so far
fn zero() -> Self where
F: Zero, [src]
F: Zero,
Initial value for an accumulator
fn absorb<I>(self, it: I) -> Self where
I: IntoIterator<Item = (F, F)>, [src]
I: IntoIterator<Item = (F, F)>,
Absorb the items of an iterator into the accumulator Read more
impl<F, R> Add<(F, F)> for DotK<F, R> where
F: TwoProduct + TwoSum,
R: SumAccumulator<F>, [src]
F: TwoProduct + TwoSum,
R: SumAccumulator<F>,
type Output = Self
The resulting type after applying the + operator.
fn add(self, (a, b): (F, F)) -> Self[src]
Performs the + operation.
impl<F, R> From<F> for DotK<F, R> where
F: Float,
R: SumAccumulator<F>, [src]
F: Float,
R: SumAccumulator<F>,
impl<F, R> Add for DotK<F, R> where
F: Float + TwoSum,
R: SumAccumulator<F>,
R::Output: Add<R, Output = R>, [src]
F: Float + TwoSum,
R: SumAccumulator<F>,
R::Output: Add<R, Output = R>,
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Self::Output[src]
Performs the + operation.
impl<F, R> Send for DotK<F, R> where
F: Send,
R: Send, [src]
F: Send,
R: Send,