dim.mmap_matrix: Get mmap_matrix dimensions

View source: R/utils.R

dim.mmap_matrixR Documentation

Get mmap_matrix dimensions

Description

Get mmap_matrix dimensions

Usage

## S3 method for class 'mmap_matrix'
dim(x)

Arguments

x

mmap_matrix object

Value

an integer vector of length 2

See Also

Other memory-mapped matrices: [.mmap_matrix(), as.matrix.mmap_matrix(), mem_matrix(), mem_matrix_from(), print.mmap_matrix()

Examples


mat <- matrix(as.double(1:20), nrow = 4, ncol = 5)
f <- tempfile(fileext = ".bin")
on.exit(unlink(f), add = TRUE)
mem_matrix_from(mat, f)
mm <- mem_matrix(f, rows = 4, cols = 5)
dim(mm)


TRexSelector documentation built on Nov. 20, 2026, 5:09 p.m.