Read a column of AB as A times that column of B
Compute one column of AB as A times that column of B. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
Write as a list of its columns:. Then
Column of the product uses column of. Each is the matrix-vector product you already know: row of dotted with the whole of gives the entry in row of that column.
A product makes sense exactly when's row length equals's length. A column of has as many entries as has rows, and that is the number's rows are long — the inner dimension. A column of has as many entries as has rows, which is the dimension of the output. So a column of lives in the output space and a column of lives in the input space, and only the input one can be fed into.
There is a second, deeper reason.'s columns are the objects being acted on; is the action. Multiplying by does the same thing to whichever column you hand it, so the column of you get back is determined entirely by the column you hand in. Nothing about chooses an index.
Column 2 of is. Then
So column 2 of is, and is because has two columns.
Read it again as a combination of columns of:. Same answer, and this reading shows why the entries of's column are the weights.
- Compute one column of AB as A times that column of B
- Use one matrix-vector product to check a full matrix product
- Say which column of B supplies a given column of AB
and. Write down column 2 of without computing column 1.
Answer
Column 2 of is. Multiply:.
So column 2 of is. Column 1 is irrelevant to this column, which is the point: each column of the product is an independent computation.