Skip to content
Linear Algebra•beginner

Scalars, Vectors, and Matrices

The building blocks of linear algebra - numbers, arrows, and grids of numbers

Why This Matters for ML

Every data point, feature, and weight in ML is represented using these structures

Interactive Visualization

Interact with the visualization to explore
Vector v = [2.0, 3.0] → Scaled = [3.0, 4.5]

The Key Intuition

Think of a scalar as a single number (like temperature). A vector is an arrow pointing somewhere in space — it has both magnitude and direction (like velocity). A matrix is a grid of numbers that can transform vectors — it's like a function that takes vectors as input and outputs transformed vectors.

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