Learn R Programming

kazaam (version 0.1-0)

collapse: collapse

Description

Collapse a shaq into a regular matrix.

Usage

collapse(x)

Arguments

x

A shaq.

Value

A regular matrix (rank 0) or NULL (everyone else).

Communication

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

Details

Only rank 0 will own the matrix on return.

Examples

Run this code

library(kazaam)
dx = ranshaq(runif, 10, 3)

x = collapse(dx)
comm.print(x)

finalize()


Run the code above in your browser using DataLab