crossprod: Matrix Multiplication

Description Usage Arguments Value Communication Examples

Description

Conceptually, this computes t(x) %*% x for a shaq x.

Usage

1
2
## S4 method for signature 'shaq'
crossprod(x, y = NULL)

Arguments

x

A shaq.

y

Must be NULL.

Value

A regular matrix.

Communication

The operation consists of a local crossproduct, followed by an allreduce() call, quadratic on the number of columns.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(kazaam)
x = ranshaq(runif, 10, 3)

cp = crossprod(x)
comm.print(cp)

finalize()

## End(Not run)

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