| Rhpc_apply | R Documentation |
MPI-based version of apply for arrays and matrices.
Rhpc_apply(cl = NULL, X, MARGIN, FUN, ...,
usequote = ifelse(is.logical(getOption("Rhpc.usequote")),
getOption("Rhpc.usequote"), TRUE))
cl |
external pointer to MPI communicator |
X |
array or matrix |
MARGIN |
vector giving the subscripts which the function will be applied over.
|
FUN |
function to apply |
... |
additional arguments passed to |
usequote |
logical; if |
This function applies FUN to array margins specified by MARGIN,
distributing the work across MPI workers.
If X has dimension subscripts not in MARGIN, those are used as the margin dimensions
for applying the function.
Array or matrix of results from applying FUN to the specified margins.
Rhpc_lapply, Rhpc_sapply
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.