
LazyMatrix S4 class
LazyMatrix-class.RdAn 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
dataThe underlying matrix.
col_scalesNumeric vector of column scales.
row_scalesNumeric vector of row scales.
col_locationsNumeric vector of column locations.
row_locationsNumeric vector of row locations.
Examples
mat <- matrix(1:6, nrow=2, ncol=3)
obj <- LazyMatrix(mat, "sd", "mean")