Vectors and matrices, Dot product
A matrix can be defined as a linear map from . This is the operator view of a matrix:
Algebraically, we write
with
Computational cost: .
Using the operator interpretation, we can define the product of two matrices as the result of composing with :
This works when and .
Algebraically, we have
For the product to be defined, the number of columns of , , must be equal to the number of rows of .
Computational cost: .