parellelizes the execution of a function on matrix elements by splitting the matrix by columns and submitting each part to one core. The function must take a matrix argument, with computations depending on row entries. It creates a matrix with same number of columns as on input, but possibly different number of rows.
pmatrix(x, FUN, ..., mc.cores = setCores(,reprt=FALSE))
plmatrix(x, FUN, ..., mc.cores = setCores(,reprt=FALSE))
matrix to operate on.
function depending on a matrix argument, and providing a matrix valued result.
see documentation for function pvec
number of threads to use. Defaults to number of threads specified for openMP, see documentation of package awsMethods.
Returns a matrix containing the results for the individual colums
of x
as columns.
this functions are wrappers to functions parCapply
and parLapply
from parallel.