powered by
Parallel versions of apply and related functions.
apply
parLapply(cl, x, fun, ...) parSapply(cl, X, FUN, ..., simplify = TRUE, USE.NAMES = TRUE) parApply(cl, X, MARGIN, FUN, ...) parRapply(cl, x, fun, ...) parCapply(cl, x, fun, ...) parMM(cl, A, B)
cluster object
function or character string naming a function
array to be used
matrix to be used
vector specifying the dimensions to use.
logical; see sapply
sapply
additional arguments to pass to standard function
matrix
parLapply, parSapply, and parApply are parallel versions of lapply, sapply, and apply.
parLapply
parSapply
parApply
lapply
parRapply and parCapply are parallel row and column apply functions for a matrix x; they may be slightly more efficient than parApply.
parRapply
parCapply
x
parMM is a very simple(minded) parallel matrix multiply; it is intended as an illustration.
parMM
For more details see http://www.stat.uiowa.edu/~luke/R/cluster/cluster.html.
# NOT RUN { # } # NOT RUN { cl <- makeSOCKcluster(c("localhost","localhost")) parSapply(cl, 1:20, get("+"), 3) # }
Run the code above in your browser using DataLab