Matrix Operations
Shapes, products, transpose, inverse, trace, and determinant.
Shapes & products
Let $A$ be $m \times n$ and $B$ be $p \times q$.
| Operation | Rule / shape |
|---|---|
Addition | Requires equal shapes; result stays (element-wise). |
Scalar multiple | Same shape ; scales every entry. |
Matrix product | Needs ; result is (inner dims cancel). |
Hadamard | Requires equal shapes; element-wise product . |
Transpose | Shape becomes ; . |
Product transpose | (order reverses). |
Non-commutative | In general , even when both are defined. |
Identity, inverse & special matrices
| Operation | Rule / shape |
|---|---|
Identity | with s on the diagonal; . |
Inverse | Only for square with ; then . |
Inverse of product | (order reverses). |
Singular matrix | : no inverse; columns are linearly dependent. |
Symmetric | ; covariance and Gram matrices are symmetric. |
Orthogonal | , so ; preserves lengths/angles. |
Scalars from a matrix
| Operation | Rule / shape |
|---|---|
Trace | Sum of diagonal entries (square ); . |
Determinant | Scalar (square ); signed volume scaling of the linear map. |
Det = 0 | Map collapses volume to zero not invertible. |
Rank | Number of linearly independent rows/columns; . |