Learn R Programming

kazaam (version 0.1-0)

matmult: Matrix Multiplication

Description

Multiplies two distributed matrices, if they are conformable.

Usage

# S4 method for shaq,matrix
%*%(x, y)

Arguments

x

A shaq.

y

A regular matrix, globally ownd on all ranks. Since the number of columns of a shaq should be small, this matrix should be small as well.

Value

A shaq.

Communication

The operation is completely local.

Details

The two shaqs must be distributed identically.

Examples

Run this code

library(kazaam)
x = ranshaq(runif, 10, 3)
y = matrix(1:9, 3, 3)

x %*% y

finalize()


Run the code above in your browser using DataLab