Skip to content
Linear Algebra•intermediate

Matrix Multiplication as Transformation

Matrices as functions that warp space

Why This Matters for ML

Every neural network layer is a matrix multiplication followed by nonlinearity

Interactive Visualization

Interact with the visualization to explore
M = [1.0, 0.5; 0.0, 1.0]

The Key Intuition

Matrix multiplication isn't just arithmetic — it's transformation. A matrix takes every vector in space and moves it somewhere else, all at once. The columns of the matrix tell you where the basis vectors land. Every neural network layer does exactly this transformation!

Try It Yourself

Use the visualization controls to:

  • Drag vectors to see transformations in real-time
  • Adjust parameters with sliders
  • Observe how changes affect the output
  • Connect the visual behavior to the math