Try   HackMD

Matrix-vector multiplication

Given two length-

n vectors
v
and
w
, we define the scalar product
vw
as the value obtained by multiplying each element of
v
with the corresponding element of
w
and summing up the products:
vw=i=1nviwi

Given an

m×n matrix
M
and a length-
n
vector
v
, we define the matrix-vector product
Mv
as the
m
dimensional vector
w
, whose
i
-th element is the scalar product of the
i
-th row vector of
M
with the vector
v
:

w=Mvmeanswi=jmijvj.

For

Mv to be defined, the number of columns of
M
must be equal to the length of
v
.