cscale_inplace: cscale_inplace

View source: R/ctools.R

cscale_inplaceR Documentation

cscale_inplace

Description

Center (and scale) a matrix 'inplace'. The function is meant for big matrices that shall be scaled inplace, hence without creating a copy

Usage

cscale_inplace(X, means = NULL, vars = NULL, scale=FALSE)	

Arguments

X

numeric matrix

means

numeric vector, if ommitted will be computed using codeccolmv

vars

numeric vector, if ommitted will be computed using ccolmv

scale

boolean - scale the matrix

Value

nothing, function works 'inplace'

Examples

# generate random data
rand_data(100,500)

# scale matrix
cscale_inplace(M,scale=TRUE)

cheuerde/cpgen documentation built on June 24, 2024, 2:33 p.m.