pmatrix: Parallelize columnwise computations on a matrix using forking...

Description Usage Arguments Details Value Note Author(s)

View source: R/parallel.r

Description

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.

Usage

1
2
pmatrix(x, FUN, ..., mc.cores = setCores(,reprt=FALSE))
plmatrix(x, FUN, ..., mc.cores = setCores(,reprt=FALSE))

Arguments

x

matrix to operate on.

FUN

function depending on a matrix argument, and providing a matrix valued result.

...

see documentation for function pvec

mc.cores

number of threads to use. Defaults to number of threads specified for openMP, see documentation of package awsMethods.

Details

this functions are wrappers to functions parCapply and parLapply from parallel.

Value

Returns a matrix containing the results for the individual colums of x as columns.

Note

These functions are wrappers to functions parCapply and parLapply from parallel.

Author(s)

J\"org Polzehl [email protected]


dti documentation built on May 29, 2017, 3:50 p.m.