Description Usage Arguments Details Author(s) Examples
Matrix calculation parallel execution
1 | matprod.par(cl, A, B)
|
cl |
integer, number of cluster |
A |
Matrix |
B |
Matrix |
The idea is that we will distribute the rows of a matrix A for example on the cores and we will make the matrix product of each group of rows with another matrix B
Sami Ait Tilat, Afaf Ben Haj, Marie Vachet
1 2 3 4 5 6 7 8 | ## Not run:
ncores=8
cl <- makeCluster(ncores)
A <- matrix(round(rnorm(16^2),1),16)
B <- t(A)+4
matprod.par(cl,A,B)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.