matmultR Documentation

Matrix multiplication

Description

Multiplies two matrices, if they are conformable. If one argument is a vector, it will be promoted to either a row or column matrix to make the two arguments conformable.

Usage

## S4 method for signature 'fm,fm'
x %*% y

## S4 method for signature 'fm,fmV'
x %*% y

## S4 method for signature 'fmV,fm'
x %*% y

## S4 method for signature 'fm,ANY'
x %*% y

## S4 method for signature 'ANY,fm'
x %*% y

Arguments

x

a FlashR matrix.

y

can be a FlashR vector or matrix, an R vector or matrix.

Value

a FlashR matrix.

Examples

mat1 <- fm.runif.matrix(100, 10)
mat2 <- fm.runif.matrix(10, 10)
mat <- mat1 %*% mat2