Skip to contents

An S4 class to represent a lazily transformed matrix with scaling and location parameters.

Value

An object of class LazyMatrix with slots data (matrix, possibly sparse), col_scales, row_scales, col_locations, row_locations. Represents the original data matrix plus stored scaling/centering parameters used for lazy operations

Slots

data

The underlying matrix.

col_scales

Numeric vector of column scales.

row_scales

Numeric vector of row scales.

col_locations

Numeric vector of column locations.

row_locations

Numeric vector of row locations.

Examples

mat <- matrix(1:6, nrow=2, ncol=3)
obj <- LazyMatrix(mat, "sd", "mean")