Skip to main content

vector_scale_f32

Function vector_scale_f32 

Source
pub fn vector_scale_f32(a: &[f32], scalar: f32, c: &mut [f32])
Expand description

Scale every element: c[i] = a[i] * scalar

ยงPanics

Panics if a and c do not have the same length.