Learn R Programming

bigGP (version 0.1-2)

collectVector: Return a Distributed Vector to the Master Process

Description

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.

Usage

collectVector(objName, objPos = '.GlobalEnv', n, h = 1)

Arguments

Value

collectVector returns a vector of length, $n$.

See Also

pull collectTriangularMatrix collectRectangularMatrix collectDiagonal distributeVector

Examples

Run this code
bigGP.init(3)
n <- 3000
x <- rnorm(n)
distributeVector(x, 'tmp', n = n)
y <- collectVector('tmp', n = n)
identical(x, y)

Run the code above in your browser using DataLab