A vector is just a
matrix.
The product of an
matrix A and an
vector x is an
vector y where
. It is the ``dot product'' between the rows of A and
x.
Matrix-vector products come up all over the place. For example:
- If A is the matrix of student exam grades and x is a vector of
``weights'' (what fraction of the final grade is assigned to each
exam), then A x is a vector of final scores for each student.
- If A[i,j] is the number of times word j appears in article i
and x[j] is 1 if and only if a ``query'' contains term j, then
A x is a vector with one entry per article with the total number of
query terms appearing in that article.
Next: Transposition and Matrix-Matrix Products
Up: SPARSE MATRICES
Previous: Matrices