pub unsafe extern "C" fn set(
n: c_int,
alpha: *const Complex<c_float>,
x: *mut Complex<c_float>,
inc_x: c_int,
)Expand description
Sets all elements in the single-precision complex vector x to the given complex value alpha.
§Precision
This function operates on Complex<f32> complex numbers.
§Parameters
n: The number of elements in the vectorx.alpha: A pointer to the complex value to set all elements ofx.x: A pointer to the vector to be modified in-place.inc_x: The increment between elements inx.
§Safety
This is an unsafe C function, and it is the caller’s responsibility to ensure that
the memory region accessed by x (up to n * inc_x) is valid and within bounds.