View source: R/collectDistribute.R
collectVector | R Documentation |
collectVector
retrieves a distributed vector from the slave
processes, reconstructing in the correct order on the master process.
Objects can be copied from environments, lists, and
ReferenceClass objects as well as the global environment on the slave processes.
collectVector(objName, objPos = '.GlobalEnv', n, h = 1)
objName |
an object name, given as a character string, giving the name of the object on the slave processes. |
objPos |
where to look for the object, given as a character string (unlike
|
n |
a positive integer, the length of the vector. |
h |
a positive integer, the block replication factor, |
collectVector
returns a vector of length, n
.
pull
collectTriangularMatrix
collectRectangularMatrix
collectDiagonal
distributeVector
## 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.