Description Usage Arguments Value Communication Examples
Expand a regular matrix owned on MPI rank 0 into a shaq.
1 |
x |
A regular matrix. |
class |
'shaq' or 'tshaq' |
A shaq or a tshaq.
Short answer: quite a bit. Each local submatrix has to be received from rank 0.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | spmd.code = "
library(kazaam)
if (comm.rank() == 0){
x = matrix(runif(30), 10, 3)
} else {
x = NULL
}
dx = expand(x)
dx
finalize()
"
pbdMPI::execmpi(spmd.code=spmd.code, nranks=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.