pub unsafe fn dot_product(
n: usize,
x: *const f64,
incx: usize,
y: *const f64,
incy: usize,
) -> f64Expand description
Computes the dot product of two vectors.
§Arguments
n- The number of elements in both vectorsxandy.x- A raw constant pointer to the first element of vectorx.incx- The stride between consecutive elements ofx.y- A raw constant pointer to the first element of vectory.incy- The stride between consecutive elements ofy.
§Returns
The dot product as an f64 value.