pub struct BSSplit {
pub p: BigInt,
pub q: BigInt,
pub b: BigInt,
pub t: BigInt,
}Expand description
Result of binary-splitting over a range [lo, hi).
The partial sum equals t / (q · b).
Fields§
§p: BigIntCumulative numerator factor P(lo) · P(lo+1) · … · P(hi-1).
q: BigIntCumulative denominator factor Q(lo) · Q(lo+1) · … · Q(hi-1).
b: BigIntCumulative denominator factor B(lo) · B(lo+1) · … · B(hi-1).
t: BigIntAccumulated partial-sum numerator (over shared denominator q · b).
Auto Trait Implementations§
impl Freeze for BSSplit
impl RefUnwindSafe for BSSplit
impl Send for BSSplit
impl Sync for BSSplit
impl Unpin for BSSplit
impl UnsafeUnpin for BSSplit
impl UnwindSafe for BSSplit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more