%matrix%

0th

Percentile

Numerical and Symbolic Matrix Product

Multiplies two character or numeric 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. If both are vectors of the same length, it will return the inner product (as a matrix).

Usage
x %matrix% y
Arguments
x

character or numeric matrix.

y

character or numeric matrix.

Value

character or numeric matrix.

Aliases
  • %matrix%
Examples
# NOT RUN {
# numeric inner product 
x <- 1:4
x %matrix% x  

# symbolic inner product 
x <- letters[1:4]
x %matrix% x

# matrix products
x <- letters[1:4]
y <- diag(4)
z <- array(1:12, dim = c(4,3))
y %matrix% z
y %matrix% x
x %matrix% z

# }
Documentation reproduced from package calculus, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.