Matrix Concepts Detailed Guide
Matrix Concepts Detailed Guide
4. Scalar Multiplication
Multiply each element of a matrix by a scalar (constant number).
Example:
k=3
A = [ [1, 2], [3, 4] ]
kA = [ [3, 6], [9, 12] ]
5. Matrix Multiplication Basics
A × B is defined only when the number of columns in A equals the number of rows in B.
Example:
A = [ [1, 2], [3, 4] ]
B = [ [2, 0], [1, 2] ]
A × B = [ [(1×2 + 2×1), (1×0 + 2×2)], [(3×2 + 4×1), (3×0 + 4×2)] ]
= [ [4, 4], [10, 8] ]
7. Transpose of a Matrix
Flips the matrix over its diagonal.
If A = [ [1, 2], [3, 4], [5, 6] ], then Aᵀ = [ [1, 3, 5], [2, 4, 6] ]