kazaam (version 0.1-0)

expand: expand

Description

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

Usage

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

Run this code

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