[−][src]Struct accurate::sum::OnlineExactSum
Calculates a sum using separate accumulators for each possible exponent
Examples
use accurate::traits::*; use accurate::sum::OnlineExactSum; let s = OnlineExactSum::zero() + 1.0 + 2.0 + 3.0; assert_eq!(6.0f64, s.sum());
References
Based on Zhu and Hayes 10
Trait Implementations
impl<F> Add<F> for OnlineExactSum<F> where
OnlineExactSum<F>: AddAssign<F>,
[src]
OnlineExactSum<F>: AddAssign<F>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: F) -> Self::Output
[src]
impl<F> Add<OnlineExactSum<F>> for OnlineExactSum<F> where
F: Float + TwoSum + IFastSum + FloatFormat + RawExponent,
[src]
F: Float + TwoSum + IFastSum + FloatFormat + RawExponent,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl<F> AddAssign<F> for OnlineExactSum<F> where
F: TwoSum + FloatFormat + RawExponent,
[src]
F: TwoSum + FloatFormat + RawExponent,
fn add_assign(&mut self, rhs: F)
[src]
impl<F: Clone> Clone for OnlineExactSum<F>
[src]
fn clone(&self) -> OnlineExactSum<F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F: Debug> Debug for OnlineExactSum<F>
[src]
impl<F> From<F> for OnlineExactSum<F> where
F: TwoSum + FloatFormat + RawExponent,
[src]
F: TwoSum + FloatFormat + RawExponent,
impl<F> Send for OnlineExactSum<F> where
F: Send,
[src]
F: Send,
impl<F> SumAccumulator<F> for OnlineExactSum<F> where
F: Float + TwoSum + IFastSum + FloatFormat + RawExponent,
[src]
F: Float + TwoSum + IFastSum + FloatFormat + RawExponent,
Auto Trait Implementations
impl<F> RefUnwindSafe for OnlineExactSum<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Sync for OnlineExactSum<F> where
F: Sync,
F: Sync,
impl<F> Unpin for OnlineExactSum<F>
impl<F> UnwindSafe for OnlineExactSum<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Acc, F> ParallelSumAccumulator<F> for Acc where
Acc: SumAccumulator<F, Output = Acc> + Add<Acc> + Send,
[src]
Acc: SumAccumulator<F, Output = Acc> + Add<Acc> + Send,
fn into_consumer(self) -> SumConsumer<Self>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,