Function add_inplace

Source
pub fn add_inplace<T>(src1_dst: &mut [T], src2: &[T])
where T: Copy + Add<T, Output = T>,
Expand description

Adds all values in src1_dst and src2 element-wise and stores the results in src1_dst. All slices must have the same length.

ยงPanics

This method panics if the slices have different lengths.