Description Usage Arguments Value Author(s) Examples
View source: R/Rparutilities.R
An array (length <= total number of slaves) is scattered to slaves so that the first
slave calls fun
with arguments x[[1]]
and ...
, the second one
calls with arguments x[[2]]
and ...
, and so on. mpi.iapply
is a
nonblocking version of mpi.apply
so that it will not consume CPU on master node.
1 2 | mpi.apply(x, fun, ..., comm=1)
mpi.iapply(x, fun, ..., comm=1, sleep=0.01)
|
x |
an array |
fun |
a function |
... |
optional arguments to |
comm |
a communicator number |
sleep |
a sleep interval on master node (in sec) |
A list of the results is returned. Its length is the same as that of x
. In
case the call fun
with arguments x[[i]]
and ...
fails on ith
slave, corresponding error message will be returned in the returning list.
Hao Yu
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.