pub fn reduce<T: Copy + MaybeSendSync, Op: ElementOp<T>, M, R, U>(
src: &StridedView<'_, T, Op>,
map_fn: M,
reduce_fn: R,
init: U,
) -> Result<U>Expand description
Full reduction with map function: reduce(init, op, map.(src)).
pub fn reduce<T: Copy + MaybeSendSync, Op: ElementOp<T>, M, R, U>(
src: &StridedView<'_, T, Op>,
map_fn: M,
reduce_fn: R,
init: U,
) -> Result<U>Full reduction with map function: reduce(init, op, map.(src)).