R: matrix multiplication

matmult {units} | R Documentation

## matrix multiplication

### Description

matrix multiplication

### Usage

    x %*% y

    ## Default S3 method:
    x %*% y

    ## S3 method for class '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

    a = set_units(1:5, m)
    a %*% a
    a %*% t(a)
    a %*% set_units(1:5, 1)
    set_units(1:5, 1) %*% a

[Package units version 0.5-1 Index]