Skip to main content

reduce_axis

Function reduce_axis 

Source
pub fn reduce_axis<T, Op, M, R, U>(
    src: &StridedView<'_, T, Op>,
    axis: usize,
    map_fn: M,
    reduce_fn: R,
    init: U,
) -> Result<StridedArray<U>, StridedError>
where T: Copy + MaybeSendSync, Op: ElementOp<T>, M: Fn(T) -> U + MaybeSync, R: Fn(U, U) -> U + MaybeSync, U: Clone + MaybeSendSync,
Expand description

Reduce along a single axis, returning a new StridedArray.