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

1
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

1
2
3
4
5
6
7
8
## Not run: 
# generate random data
rand_data(500,5000)

# scale matrix
cscale_inplace(M,scale=TRUE)

## End(Not run)