pub enum CumulativeOp {
Sum,
Prod,
Max,
Min,
LogSumExp,
}Expand description
The operation of a cumulative reduction (cumsum and the like).
Variants§
Sum
Sum (integers wrap around).
Prod
Product (integers wrap around).
Max
Maximum, propagating NaN.
Min
Minimum, propagating NaN.
LogSumExp
log(exp(a) + exp(b)), computed as JAX’s logaddexp (floats only).
Implementations§
Trait Implementations§
Source§impl Clone for CumulativeOp
impl Clone for CumulativeOp
Source§fn clone(&self) -> CumulativeOp
fn clone(&self) -> CumulativeOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CumulativeOp
Source§impl Debug for CumulativeOp
impl Debug for CumulativeOp
impl Eq for CumulativeOp
Source§impl Hash for CumulativeOp
impl Hash for CumulativeOp
Source§impl PartialEq for CumulativeOp
impl PartialEq for CumulativeOp
impl StructuralPartialEq for CumulativeOp
Auto Trait Implementations§
impl Freeze for CumulativeOp
impl RefUnwindSafe for CumulativeOp
impl Send for CumulativeOp
impl Sync for CumulativeOp
impl Unpin for CumulativeOp
impl UnsafeUnpin for CumulativeOp
impl UnwindSafe for CumulativeOp
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