Matrix-Column-Vector Multiplication via Dot Products
Let matrix and 3.1 Column Vector. We define matrix-column-vector product with 5.1 Inner Product Between Vectors using an entry-by-entry approach. The th entry of the product can be calculated via dot product between the th row of and the vector .
for row index . When we calculate each entry of the output vector, we produce:
! The inner dimensions must agree!
Remark. To analyze the dot product definition of matrix-column-vector multiplication, let's cut up our matrix into row partitions and output vector into individual scalars.
Let's take a look at how the individual entries are computed.
& Recall that the inner product requires the dimensions of the operands to be the same. This is why we have to transpose the row partitions of .
We use for the sum because when working with row partitions, we are iterating across the columns. This process would continue for the rest of the entries .