Computes \(Z := X \circ Y\). When `Z` is missing it is allocated automatically.
Arguments
- N
Optional integer giving the number of elements. Defaults to `length(X)`.
- X
Double-precision vector, matrix or [`bigmemory::big.matrix`] input.
- INCX
Integer stride for traversing `X`.
- Y
Double-precision object updated in place.
- INCY
Integer stride for traversing `Y`.
- Z
Optional output container receiving the product.
- INCZ
Integer stride for `Z`.
Examples
dhprod(X = 1:4, Y = rep(2, 4))
#> [1] 2 4 6 8