Function scale_plus

Source
pub unsafe extern "C" fn scale_plus(
    n: c_int,
    alpha: c_float,
    x: *const c_float,
    inc_x: c_int,
    y: *mut c_float,
    inc_y: c_int,
)
Expand description

Performs the operation y = alpha * x + y for single-precision vectors.

§Precision

This function operates on f32 complex numbers.

§Parameters

  • n: The number of elements in the vectors.
  • alpha: The scalar that scales the vector x.
  • x: A pointer to the input vector x.
  • inc_x: The increment between elements in x.
  • y: A pointer to the input/output vector y, which stores the result in-place.
  • inc_y: The increment between elements in y.

§Safety

This is an unsafe C function. The caller must ensure that the memory regions accessed by x and y are valid and within bounds.