shared.deepcopy {bigmemory} | R Documentation |
This is needed to make a duplicate of a big.matrix
in shared memory.
Traditional
R syntax would only copy the R object (the pointer to the big.matrix
rather than the big.matrix
itself).
shared.deepcopy(x)
x |
a big.matrix . |
This is needed to make a duplicate of a big.matrix
, because traditional
R syntax would only copy the R object (the pointer to the big.matrix
rather than the big.matrix
itself).
a big.matrix
, in shared memory.
John W. Emerson and Michael J. Kane
x <- as.big.matrix(matrix(1:30, 10, 3)) y <- shared.deepcopy(x) x y head(x) head(y) is.shared(y)