powered by
Dot product of two vectors
ddot(N = NULL, X, INCX = 1L, Y, INCY = 1L)
Numeric scalar containing the dot product.
Optional integer giving the number of elements. Defaults to `length(X)`.
Double-precision vector, matrix or [`bigmemory::big.matrix`] input.
Integer stride for traversing `X`.
Double-precision object updated in place.
Integer stride for traversing `Y`.
ddot(X = 1:3, Y = c(2, 4, 6))
Run the code above in your browser using DataLab