Learn R Programming

pbdDMAT (version 0.5-1)

matmult: Matrix Multiplication

Description

Multiplies two distributed matrices, if they are conformable.

Usage

# S4 method for ddmatrix,ddmatrix
%*%(x, y)

# S4 method for ddmatrix crossprod(x, y = NULL)

# S4 method for ddmatrix tcrossprod(x, y = NULL)

Arguments

x, y

numeric distributed matrices

Value

Returns a distributed matrix.

Details

x and y must be conformable, on the same BLACS context, but they need not be blocked with the same blocking dimension. The return will default to the blocking dimension of x.

If you need to use x and y with differing blocking dimensions and you want the return to have blocking different from that of x, then use the function base.rpdgemm().

The crossprod() and tcrossprod() functions behave exactly as their R counterparts.