powered by
Coerce a Shared Memory Buffer to Matrix
# S3 method for shard_buffer as.matrix(x, ...)
A matrix with the buffer contents and the buffer's dimensions.
A shard_buffer object (must be 2-dimensional).
shard_buffer
Ignored.
# \donttest{ buf <- buffer("double", dim = c(3, 4)) as.matrix(buf) buffer_close(buf) # }
Run the code above in your browser using DataLab