mat_mult: Multiple two matrices and a vector

View source: R/mat_mult.R

mat_multR Documentation

Multiple two matrices and a vector

Description

Multiple two matrices and a vector

Usage

mat_mult(A, B, x, left = TRUE)

Arguments

A

a square matrix

B

a square matrix with the same dim as A

x

a vector with length equal to length of A

left

a boolean option that determines which product is computed first

Value

matrix product A \times B \times x

Examples

mat_mult(cbind(c(1,2),c(3,4)),rbind(c(1,2),(3,4)),c(1,2),True)

pderdeyn/Stats230pieter documentation built on March 21, 2022, 6:32 a.m.