dhprod: Element-wise (Hadamard) product

View source: R/blas_extras.R

dhprodR Documentation

Element-wise (Hadamard) product

Description

Computes Z := X \circ Y. When 'Z' is missing it is allocated automatically.

Usage

dhprod(N = NULL, X, INCX = 1L, Y, INCY = 1L, Z, INCZ = 1L)

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'.

Value

The updated object 'Z'.

Examples

dhprod(X = 1:4, Y = rep(2, 4))


bigalgebra documentation built on Sept. 9, 2026, 5:12 p.m.