Skip to main content

simd_axpy

Function simd_axpy 

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

AXPY operation: y = a*x + y

Single-pass fused loop, auto-vectorized by the compiler.

ยงArguments

  • a - Scalar coefficient
  • x - Input vector (typically gradient or momentum)
  • y - Output vector (updated in-place)