Dot product in matrix notation
The transpose of a matrix
Before describing the dot product in matrix notation, we briefly digress to make sure you know what the transpose of a matrix is.
We can transpose a matrix by switching its rows with its columns. We denote the transpose of matrix by . For example, if
then the transpose of is
Since an -dimensional vector is represented by an column matrix,
the transpose is a row matrix
The dot product as matrix multiplication
Given the rules of matrix multiplication, the product of a matrix with an matrix is a matrix, i.e., a scalar. So if we multiply (a matrix) with any -dimensional vector (viewed as an matrix), we end up with a matrix multiplication equivalent to the familiar dot product of :
Although we won’t typically write a dot product as , you may see it elsewhere. Moreover, this dot product forms the building block for the general matrix multiplication.