ranshaq: ranshaq

Description Usage Arguments Value Communication Examples

Description

Generate a random shaq object.

Usage

1
ranshaq(generator, nrows, ncols, local = FALSE, ...)

Arguments

generator

A function, such as runif() or rnorm() (passed without parens). See examples for a demonstration of usage.

nrows, ncols

The number of rows

local

Is the problem size nrows*ncols specifying the local or global problem size?

...

Additional arguments passed to the generator.

Value

A shaq.

Communication

The operation is entirely local.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
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()

## End(Not run)

kazaam documentation built on May 2, 2019, 8:55 a.m.