mpi.scatter.Robj {Rmpi} | R Documentation |
mpi.scatter.Robj
is used to scatter a list to all numbers.
mpi.scatter.Robj(obj = NULL, root = 0, comm = 1)
obj |
a list object to be scattered from the root |
root |
rank of the scatter. |
comm |
a communicator number. |
mpi.scatter.Robj
is an extension of mpi.scatter
for
scattering a list object from a sender to everyone.
mpi.scatter.Robj
for non-root members, returns the
scattered message . For the root member, it returns the
portion belonging to itself.
Hao Yu and Wei Xia
## Not run: #assume that there are three slaves running mpi.bcast.cmd(x<-mpi.scatter.Robj()) xx <- list("master",rnorm(3),letters[2],1:10) mpi.scatter.Robj(obj=xx) mpi.remote.exec(x) ## End(Not run)