Struct accurate::sum::SumK
[−]
[src]
pub struct SumK<F, C> { /* 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: Copy, C: Copy> Copy for SumK<F, C>[src]
impl<F: Clone, C: Clone> Clone for SumK<F, C>[src]
fn clone(&self) -> SumK<F, C>[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, C: Debug> Debug for SumK<F, C>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<F, C> SumAccumulator<F> for SumK<F, C> where
F: Float + TwoSum,
C: SumAccumulator<F>, [src]
F: Float + TwoSum,
C: SumAccumulator<F>,
fn sum(self) -> F[src]
The sum 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>, [src]
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
SumK<F, C>: AddAssign<F>, [src]
SumK<F, C>: AddAssign<F>,
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: F) -> Self::Output[src]
Performs the + operation.
impl<F, C> From<F> for SumK<F, C> where
F: Float,
C: SumAccumulator<F>, [src]
F: Float,
C: SumAccumulator<F>,
impl<F, C> Add for SumK<F, C> where
F: Float + TwoSum,
C: SumAccumulator<F>,
C::Output: Add<C, Output = C>, [src]
F: Float + TwoSum,
C: SumAccumulator<F>,
C::Output: Add<C, Output = C>,
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Self::Output[src]
Performs the + operation.
impl<F, C> Send for SumK<F, C> where
F: Send,
C: Send, [src]
F: Send,
C: Send,
impl<F, C> AddAssign<F> for SumK<F, C> where
F: Float + TwoSum,
C: SumAccumulator<F>, [src]
F: Float + TwoSum,
C: SumAccumulator<F>,
fn add_assign(&mut self, rhs: F)[src]
Performs the += operation.