dadd: BLAS dadd functionality

Description Usage Arguments Author(s) See Also Examples

View source: R/bigalgebra.R

Description

This function implements the function Y := ALPHA + Y where Y may be either native double-precision valued R matrices or numeric vectors, or double-precision valued big.matrix objects, and ALPHA is a scalar.

Usage

1
dadd(Y, ALPHA, SIGN=1, ALPHA_LHS=1)

Arguments

Y

Requried to be either a native R matrix or numeric vector, or a big.matrix object

ALPHA

Required to be a scaler.

SIGN

1 for addition -1 for subtraction.

ALPHA_LHS

Should SIGN be multiplied by Y (default) or alpha.

Author(s)

Michael J. Kane

See Also

bigmemory

Examples

1
2
3
4
5
require(bigmemory)
A = matrix(1, nrow=3, ncol=2)
B = dadd(A, 10)
print(A)
print(B)

kaneplusplus/bigalgebra documentation built on May 20, 2019, 7:19 a.m.