pub enum Reduce {
Mean,
Sum,
Max,
Min,
Norm,
}Expand description
Reduction strategy for non-scalar tagged outputs in collect_with().
Variants§
Mean
Arithmetic mean over all elements.
Sum
Sum of all elements.
Max
Maximum element value.
Min
Minimum element value.
Norm
L2 norm (Frobenius norm for matrices).
Auto Trait Implementations§
impl Freeze for Reduce
impl RefUnwindSafe for Reduce
impl Send for Reduce
impl Sync for Reduce
impl Unpin for Reduce
impl UnsafeUnpin for Reduce
impl UnwindSafe for Reduce
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