Struct accurate::SumK
[−]
[src]
pub struct SumK<F, C> {
// some fields omitted
}Calculates a sum using cascaded accumulators for the remainder terms
See also Sum2... Sum9.
References
Based on Ogita, Rump and Oishi 05
Trait Implementations
impl<F: Clone, C: Clone> Clone for SumK<F, C>[src]
fn clone(&self) -> SumK<F, C>
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, C: Copy> Copy for SumK<F, C>[src]
impl<F, C> SumAccumulator<F> for SumK<F, C> where F: Float, C: SumAccumulator<F> + Clone[src]
fn sum(&self) -> F
The sum of all terms accumulated so far
fn absorb<I>(self, it: I) -> Self where I: IntoIterator<Item=F>
Absorb the items of an iterator into the accumulator Read more
impl<F, C> Add<F> for SumK<F, C> where F: Float, C: SumAccumulator<F>[src]
type Output = Self
The resulting type after applying the + operator
fn add(self, rhs: F) -> Self::Output
The method for the + operator
impl<F, C> From<F> for SumK<F, C> where F: Float, C: SumAccumulator<F>[src]
fn from(x: F) -> Self
Performs the conversion.