pub unsafe extern "C" fn dot(
n: c_int,
x: *const c_float,
inc_x: c_int,
y: *const c_float,
inc_y: c_int,
) -> c_floatExpand description
Computes the dot product of two single-precision vectors.
§Precision
This function operates on f32 numbers.
§Parameters
n: The number of elements in the vectorsxandy.x: A pointer to the first input vector off32numbers.inc_x: The increment between elements inx.y: A pointer to the second input vector off32numbers.inc_y: The increment between elements iny.
§Returns
- The dot product of
xandy.
§Safety
This is an unsafe C function. The caller must ensure that the memory regions accessed by x and y
(up to n * inc_x and n * inc_y) are valid and within bounds.