mv_mult: Matrix-Vector Multiplication

View source: R/BMisc.R

mv_multR Documentation

Matrix-Vector Multiplication

Description

This function multiplies a matrix by a vector and returns a numeric vector.

Usage

mv_mult(A, v)

Arguments

A

an nxk matrix.

v

a vector (can be stored as numeric or as a kx1 matrix)

Value

A numeric vector resulting from the multiplication of the matrix by the vector.

Examples

A <- matrix(1:9, nrow = 3, ncol = 3)
v <- c(2, 4, 6)
mv_mult(A, v)

bcallaway11/BMisc documentation built on Jan. 12, 2025, 9:11 a.m.