| dadd | R Documentation |
Compute double precision DY := DX + DY for N elements, applying the specified storage increments. This routine mirrors the BLAS DAXPY operation with a unit scaling factor.
dadd(N = NULL, X, INCX = 1L, Y, INCY = 1L)
N |
number of elements in the input vectors. Defaults to the length of |
X |
double precision vector or matrix providing the addend. |
INCX |
storage spacing between elements of |
Y |
double precision vector or matrix that is updated in place. |
INCY |
storage spacing between elements of |
The implementation delegates to the BLAS DAXPY routine with a unit scaling
factor, making it equivalent to daxpy(1.0, X, Y) while exposing an interface
consistent with other low-level wrappers such as dcopy and dscal.
The modified object Y containing the element-wise sums.
set.seed(4669)
X <- matrix(runif(6), 3, 2)
Y <- matrix(runif(6), 3, 2)
dadd(X = X, Y = Y)
all.equal(Y, X + Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.