Column combinations
The column view expresses a matrix–vector product as the sum of matrix columns weighted by the matching input entries.
On this page 7 sections
01For A=beginbmatrix1&23&-1endbmatrix, read each column downward#
For , read each column downward. The columns are and ; each contains both output coordinates.
Use input with columns and . Weight the first column by 2 and subtract the second.
A has rows and . Input is . Choose the column sum for .
Show answer and explanation
Use 2 times column 1 minus column 2.
02The column view groups the same products as row dot products#
The column view groups the same products as row dot products. In the first output of , the first coordinates give . The second coordinates give .
Columns: , . Input . A learner drops both columns. Repair the sum.
Show answer and explanation
Drop only column 1.
03Input weights can be negative, zero, or any real numbers#
Input weights can be negative, zero, or any real numbers. They do not need to sum to one. This diagram shows both weighted columns contributing to the same output.
Per unit: P adds ; Q adds . A command uses 3 units of P and −1 unit of Q. Choose its sum.
Show answer and explanation
Use weights 3 and −1.
Read the columns top to bottom. Weight each by its matching input entry, then add.
- Express a matrix-vector product as a combination of its columns.
Sources & further reading
- [1]Margalit and Rabinoff: Interactive Linear Algebra, 2.3 Matrix Equations ↗Margalit and Rabinoff · Book