mpi.scatter.Robj {Rmpi}R Documentation

Extensions of MPI_ SCATTER and MPI_SCATTERV

Description

mpi.scatter.Robj is used to scatter a list to all numbers.

Usage

mpi.scatter.Robj(obj = NULL, root = 0, comm = 1)

Arguments

obj a list object to be scattered from the root
root rank of the scatter.
comm a communicator number.

Details

mpi.scatter.Robj is an extension of mpi.scatter for scattering a list object from a sender to everyone.

Value

mpi.scatter.Robj for non-root members, returns the scattered message . For the root member, it returns the portion belonging to itself.

Author(s)

Hao Yu and Wei Xia

See Also

mpi.scatter, mpi.gather.Robj,

Examples

## 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)

[Package Rmpi version 0.5-5 Index]