View source: R/collectDistribute.R
distributeVector | R Documentation |
distributeVector
distributes a vector to the slave processes,
breaking into the appropriate pieces, in some cases with padded elements.
Objects can be distributed to environments and
ReferenceClass objects as well as the global environment on the slave processes.
distributeVector(obj, objName = deparse(substitute(obj)), objPos = '.GlobalEnv', n, h = 1)
obj |
object on master process to be copied, given either as the name of an object or as a character. |
objName |
an object name, given as a character string, giving the name to be
used for the object on the slave processes. If not provided, will be
the same as the name of |
objPos |
where to do the assignment, given as a character string (unlike
|
n |
a positive integer, the length of the vector. |
h |
a positive integer, the block replication factor, |
push
collectVector
collectTriangularMatrix
collectRectangularMatrix
collectDiagonal
## Not run:
bigGP.init(3)
n <- 3000
x <- rnorm(n)
distributeVector(x, 'tmp', n = n)
y <- collectVector('tmp', n = n)
identical(x, y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.