Learn R Programming

units (version 0.5-1)

matmult: matrix multiplication

Description

matrix multiplication

Usage

x %*% y

# S3 method for default %*%(x, y)

# S3 method for units %*%(x, y)

Arguments

x

numeric matrix or vector

y

numeric matrix or vector

Details

see "%*%" for the base function, reimplemented as default method

Examples

Run this code
# NOT RUN {
a = set_units(1:5, m)
a %*% a
a %*% t(a)
a %*% set_units(1:5, 1)
set_units(1:5, 1) %*% a
# }

Run the code above in your browser using DataLab