3 Linear Algebra review(optional)
3-1 Matrices and Vectors
Matrix: Rectangular array of numbers
Dimension of matrix: number of rows x number of columns (m x n)
Matrix Elements(entries of matrix)
Vector: An n x 1 matrix
1-indexed
refer A,B,C,X a,b,x,y
3-2 Addition and scalar multiplication
Matrix Addition
Matrix Scalar Multiplication
Combination of Operands
3-3 Matrix-vector multiplication
【m x n】【n x 1】=【m x 1】
neat trick: prediction = data-matrix x parameters
3-4 Matrix-matrix multiplication
【m x n】【n x o】=【m x o】
neat trick:prediction = data-matrix x parameters-matrix
3-5 Matrix multiplication properties
A × B ≠ B × A A \times B \neq B \times A A×B=B×A