Matrix Multiplication Properties

213 阅读1分钟

-- from 吴恩达 《机器学习》

. Matrices are not commutative: A∗B != B∗A . Matrices are associative: (A∗B)∗C = A∗(B∗C)(A∗B)∗C=A∗(B∗C)

The identity matrix, when multiplied by any matrix of the same dimensions, results in the original matrix. It's just like multiplying numbers by 1. The identity matrix simply has 1's on the diagonal (upper left to lower right diagonal) and 0's elsewhere.

When multiplying the identity matrix after some matrix (A∗I), the square identity matrix's dimension should match the other matrix's columns. When multiplying the identity matrix before some other matrix (I∗A), the square identity matrix's dimension should match the other matrix's rows.