sub_scalar

Function sub_scalar 

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

Subtracts a scalar value from 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.