MATRICES
Rectangular arrays of numbers. The fundamental data structure for storing linear equations, pixels, and complex transformations.
01 // Structure
A Matrix is defined by its dimensions: Rows (m) × Columns (n). Each number inside is an element with a specific coordinate address , allowing computers to instantly access massive grids of data.
02 // The Crash (Multiplication)
Matrix multiplication isn't just scaling numbers—it is applying a set of spatial transformations. To multiply matrices, you crash the Row of the first matrix into the Column of the second, calculating the dot product.
The Multiplication Engine
Dot Product Breakdown
03 // Special Matrices
A square matrix with 1s on the diagonal and 0s elsewhere. Multiplying by does absolutely nothing to the original matrix.
Swap the rows and columns. Row 1 becomes Column 1. This reflects the entire matrix perfectly over its main diagonal.
The matrix that "undoes" A. Only square matrices with non-zero determinants possess one.
Grid Logic Initialized
You are ready to command computational systems.