bdScalarwproduct

bdScalarwproduct

LINEAR_ALGEBRA

1 Description

Multiplies a numeric matrix A by a scalar weight w, returning . The input must be a base R numeric matrix (or convertible to one).

2 Usage

bdScalarwproduct(A, w)

3 Arguments

Parameter Description
A Numeric matrix (or object convertible to a dense numeric matrix).
w Numeric scalar weight.

4 Value

A numeric matrix with the same dimensions as .

5 Examples

set.seed(1234)
n <- 5; p <- 3
X <- matrix(rnorm(n * p), n, p)
w <- 0.75
bdScalarwproduct(X, w)