Struct accurate::DotK
[−]
[src]
pub struct DotK<F, R> {
// some 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: Clone, R: Clone> Clone for DotK<F, R>[src]
fn clone(&self) -> DotK<F, R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<F: Copy, R: Copy> Copy for DotK<F, R>[src]
impl<F, R> DotAccumulator<F> for DotK<F, R> where F: Float, R: SumAccumulator<F> + Clone[src]
fn dot(&self) -> F
The dot product of all terms accumulated so far
fn absorb<I>(self, it: I) -> Self where 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: Float, R: SumAccumulator<F>[src]
type Output = Self
The resulting type after applying the + operator
fn add(self, (a, b): (F, F)) -> Self
The method for the + operator
impl<F, R> From<F> for DotK<F, R> where F: Float, R: SumAccumulator<F>[src]
fn from(x: F) -> Self
Performs the conversion.