Learn R Programming

bigmemory (version 2.3)

shared.deepcopy: Produces a physical copy of a ``big.matrix'' (shared or not) in shared memory.

Description

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).

Usage

shared.deepcopy(x)

Arguments

Value

Details

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).

See Also

big.matrix

Examples

Run this code
x <- as.big.matrix(matrix(1:30, 10, 3))
y <- shared.deepcopy(x)
x
y
head(x)
head(y)
is.shared(y)

Run the code above in your browser using DataLab