add_scalar

Function add_scalar 

Source
pub fn add_scalar<T>(src: &[T], scalar: T, dst: &mut [T])
where T: Copy + Add<T, Output = T>,
Expand description

Adds a scalar value to each element in src, storing the results in dst. All slices must have the same length.

ยงPanics

This method panics if the slices have different lengths.