powered by
Expand a regular matrix owned on MPI rank 0 into a shaq.
expand(x)
A regular matrix.
A shaq.
Short answer: quite a bit. Each local submatrix has to be received from rank 0.
library(kazaam) if (comm.rank() == 0){ x = matrix(runif(30), 10, 3) } else { x = NULL } dx = expand(x) dx finalize()
Run the code above in your browser using DataLab