Description Usage Arguments Value Communication Examples
Generate a random shaq object.
1 2 3 |
generator |
A function, such as |
nrows, ncols |
The number of rows |
local |
Is the problem size |
... |
Additional arguments passed to the generator. |
A shaq.
The operation is entirely local.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | spmd.code="
library(kazaam)
# a 10x3 shaq with random uniform data
x = ranshaq(runif, 10, 3)
x
# a (comm.size() * 10)x3 shaq with random normal data
y = ranshaq(rnorm, 10, 3, local=TRUE)
y
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.