bdScalarwproduct: Matrix - Weighted Scalar Multiplication with numerical or...

View source: R/RcppExports.R

bdScalarwproductR Documentation

Matrix - Weighted Scalar Multiplication with numerical or DelayedArray data

Description

This function performs a weighted product of a matrix(X) with a weighted diagonal matrix (w)

Usage

bdScalarwproduct(A, w, op)

Arguments

A

numerical or Delayed Array matrix

w

scalar, weight

op

string indicating if operation "Xw" or "wX"

Value

numerical matrix

Examples


n <- 100
p <- 60

X <- matrix(rnorm(n*p), nrow=n, ncol=p)
w <- 0.75

bdScalarwproduct(X, w,"Xw")
bdScalarwproduct(X, w,"wX")


BigDataStatMeth documentation built on March 30, 2022, 1:07 a.m.