powered by
Conceptually, this computes t(x) %*% x for a shaq x.
t(x) %*% x
x
# S4 method for shaq crossprod(x, y = NULL)
A shaq.
Must be NULL.
NULL
A regular matrix.
The operation consists of a local crossproduct, followed by an allreduce() call, quadratic on the number of columns.
allreduce()
library(kazaam) x = ranshaq(runif, 10, 3) cp = crossprod(x) comm.print(cp) finalize()
Run the code above in your browser using DataLab