colScale_cpp: Apply / by column

Description Usage Arguments Value Author(s) Examples

Description

Fast computation of sweep(X, MARGIN = 1, FUN = "/", STATS = scale)

Usage

1

Arguments

X

A matrix.

scale

a numeric vector of length equal to the number of rows of x

Value

A matrix of same size as X.

Author(s)

Brice Ozenne <broz@sund.ku.dk>

Examples

1
2
3
x <- matrix(1,6,5)
sweep(x, MARGIN = 1, FUN = "/", STATS = 1:6)
colScale_cpp(x, 1:6 )

bozenne/riskRegressionLight documentation built on May 7, 2019, 12:52 a.m.