Skip to main content

axpy

Function axpy 

Source
pub fn axpy(alpha: f32, x: &[f32], y: &mut [f32])
Expand description

Compute y[i] += alpha * x[i] for all i (AXPY operation, f32).

§Panics

Debug-asserts that x.len() == y.len().