Types: N/A
Examples: 10.5.1 Example of Row-Vector-Matrix Multiplication via Dot Products
Constructions: N/A
Generalizations: N/A

Properties: 10.7 Properties of Row-Vector-Matrix Multiplication
Sufficiencies: N/A
Questions: N/A

Row-Vector-Matrix Multiplication via Dot Products

Let matrix ARm×n and 3.1 Column Vector xRm×1. We define the row-vector-matrix product xT=bR1×n via dot products using an entry-by-entry approach where the output is a 3.4 Row Vector. The kth entry of the product b=xTA can be calculated by an inner product between the kth column of A and the vector x:

bk=entry(1,k)(xTA)=x(A(:,k))=i=1maikxi

for column index k{1,2,,n}. When we calculate every entry of the output vector, we produce

xTA=[b1b2bn]
  • In other words, we are taking the dot product of our column vector x and the kth column of A.

Remark. Recall that when working with matrices and vectors, the inner dimensions must agree.

[b]1×n=[xT]1×m[A]m×n

Remark. Similar to 10.4 Row-Vector-Matrix Multiplication via Linear Combinations, we also partition the output vector into column partitions. Let's look at finding the entries of b.

b=xTA=xT[A(:,1)A(:,2)A(:,n)]=[b1b2bn]b1=entry(1,1)(xTA)=xA(:,1)=[x1x2xm][a11a21am1]=x1a11+x2a21++xmam1b2=entry(1,2)(xTA)=xA(:,2)=[x1x2xm][a12a22am2]=x1a12+x2a22+xmam2b2=i=1mxiai2

The last entry of output b=xTA is

bk=entry(1,n)(xTA)=xA(:,n)=[x1x2xm]1×m[a1ka2kamn]1×m=x1a1n+x2a2n++xmamn

Putting this all together, we have the entry-by-entry definition.

[b1b2bn]1×n=[x1x2xm]1×m[a11a12a1ma21a22a2mam1am2amn]m×n=[x1a11+x2a21++xmam1x1a1n+x2a2n++xmamn]

Remark. If we factor out the scalar multiples, we can produce the 10.4 Row-Vector-Matrix Multiplication via Linear Combinations definition.

[b]1×m=x1[a11a12a1n]+x2[a21a22a2n]+xm[am1am2amn]

Therefore, both methods produce the exact same output.