| mem_matrix_from | R Documentation |
Writes a numeric matrix to a binary memory-mapped file on disk and returns
a MemoryMappedMatrix handle pointing to it.
mem_matrix_from(mat, filename)
mat |
A |
filename |
String destination file path. |
A MemoryMappedMatrix / mmap_matrix object backed by filename.
F. Scheidt, J. Machkour, and M. Muma, "Solving FDR-Controlled Sparse Regression Problems with Five Million Variables on a Laptop," in Proc. IEEE 9th Int. Workshop Comput. Adv. Multi-Sensor Adapt. Process. (CAMSAP), 2023, pp. 116-120.
Other memory-mapped matrices:
[.mmap_matrix(),
as.matrix.mmap_matrix(),
dim.mmap_matrix(),
mem_matrix(),
print.mmap_matrix()
mat <- matrix(as.double(1:20), nrow = 4, ncol = 5)
f <- tempfile(fileext = ".bin")
on.exit(unlink(f), add = TRUE)
mm <- mem_matrix_from(mat, f)
print(mm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.