Part of linear algebra.

dot product

If x=(x_1, x_2, …, x_n), y = y_1,y_2,…,y_n) the dot product of x and y is the product

marix multiplication

let A be an m*n size matrix. Let B be an n*k matrix. The product matrix

AB is the matrix whose ij entry is the dot product of Ai . Bj

The resulting size will be an m*k matrix.

example

Compute AB if and

example

Compute AB and BA

BA is 3x3 b/c they’re 3x1 and 1x3 and we do m*k size