Function set

Source
pub unsafe extern "C" fn set(
    n: c_int,
    alpha: *const Complex<c_double>,
    x: *mut Complex<c_double>,
    inc_x: c_int,
)
Expand description

Sets all elements in the double-precision complex vector x to the given complex value alpha.

§Precision

This function operates on Complex<f64> complex numbers.

§Parameters

  • n: The number of elements in the vector x.
  • alpha: A pointer to the complex value to set all elements of x.
  • x: A pointer to the vector to be modified in-place.
  • inc_x: The increment between elements in x.

§Safety

This is an unsafe C function. The caller must ensure that the memory region accessed by x (up to n * inc_x) is valid and within bounds.