trendingzones

AI & ML — LAB

Matrix Operations Lab

Pick an operation, set the matrix size, fill in any numbers you want, and see the result computed live. Multiplication is the operation covered in Matrix Multiplication, alongside the other core matrix operations from the same grade 12 chapter — addition, subtraction, scalar multiplication, transpose, determinant, and inverse.

How to Use This Lab

The Lab

What Each Operation Means

Multiplication (A × B)

Each output cell is a row of A dotted with a column of B — only defined when A’s column count matches B’s row count.

Addition & Subtraction

Add or subtract matching cells directly — only defined between two matrices of the exact same size.

Scalar Multiplication

Multiply every single cell in A by the same number k — the simplest matrix operation there is.

Transpose (Aᵀ)

Turn every row of A into a column, in the same order — a 2×3 matrix’s transpose is 3×2.

Determinant (det(A))

A single number computed from a square matrix that, among other things, tells you whether the matrix has an inverse at all — zero means it doesn’t.

Inverse (A⁻¹)

The matrix that “undoes” A, computed here as A⁻¹ = adj(A) / det(A) — only exists when det(A) is not zero.

Want the full explanation of matrix multiplication — why it’s the exact operation a neural network layer computes, and why GPUs are built specifically to run it fast? Read Matrix Multiplication →