fm.conv.layoutR Documentation

Convert the data layout of a FlashR matrix.

Description

A FMR matrix can store elements in a row-major or column-major order. By changing the data layout, we can improve efficiency of some matrix operations.

Usage

fm.conv.layout(fm, byrow = FALSE)

Arguments

fm

a FlashR matrix

byrow

a logical value to determine the data layout of a FlashR matrix.

Value

a FlashR matrix

Author(s)

Da Zheng <dzheng5@jhu.edu>

Examples

mat <- fm.conv.layout(fm.runif.matrix(100, 2), byrow=TRUE)