Matrix Operations Guide
A matrix is a rectangular array of numbers arranged in rows and columns. Matrix operations are fundamental in linear algebra, computer graphics, engineering, and machine learning.
Basic Matrix Operations
- Addition/Subtraction: Add or subtract corresponding elements. Matrices must be same size.
- Multiplication: For A(m×n) × B(n×p), the inner dimensions must match. Result is m×p.
- Transpose (Aᵀ): Flip rows and columns — rows become columns.
- Determinant: A scalar value that describes certain properties of the matrix.
det([[a,b],[c,d]]) = ad − bc