Skip to main content

add

Function add 

Source
pub fn add<D, S, Op>(
    dest: &mut StridedViewMut<'_, D>,
    src: &StridedView<'_, S, Op>,
    exec: Exec<'_>,
) -> Result<(), StridedError>
where D: Copy + Add<S, Output = D> + Send + Sync, S: Copy + Send + Sync, Op: ElementOp<S>,
Expand description

Element-wise addition: dest[i] += src[i].

Source may have a different element type from destination.