Hints for matrix algebra:
- horizontal vector x vertical vector = a number
- vertical vector x horizontal vector = matrix
- matrix x vertical vector = vertical vector
- horizontal vector x matrix = horizontal vector
- matrix A x matrix B = matrix C
- matrix B x matrix A = matrix D