Learn R Programming

kazaam (version 0.1-0)

crossprod: Matrix Multiplication

Description

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

Usage

# S4 method for 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

Run this code

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

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

finalize()


Run the code above in your browser using DataLab