Skip to main content

axpy

Function axpy 

Source
pub fn axpy(
    n: i32,
    alpha: f64,
    x: &[f64],
    incx: i32,
    y: &mut [f64],
    incy: i32,
    null_mask: Option<&Bitmask>,
    null_count: Option<usize>,
) -> Result<(), KernelError>
Expand description

Scaled vector addition: y ← α·x + y

Computes a linear combination of two vectors, scaling x by alpha and accumulating into y. Equivalent to y[i] ← alpha * x[i] + y[i] for all valid i.