expand: expand

Description Usage Arguments Value Communication Examples

Description

Expand a regular matrix owned on MPI rank 0 into a shaq.

Usage

1
expand(x)

Arguments

x

A regular matrix.

Value

A shaq.

Communication

Short answer: quite a bit. Each local submatrix has to be received from rank 0.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(kazaam)
if (comm.rank() == 0){
  x = matrix(runif(30), 10, 3)
} else {
  x = NULL
}

dx = expand(x)
dx

finalize()

## End(Not run)

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