Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Matrix

What is matrix?

A rectangular grid of numbers. Multiplying a vector by a matrix transforms it into a new vector.

Where it is taught

Matrices move space. A matrix is a grid of numbers and also a machine. Feed it a vector and it returns a new one. Watching what it does to a whole plane makes it easy to understand.

What the lesson leaves you with

  • Matrix times vector: dot each row of the matrix with the vector.
  • The columns of a matrix are where the unit arrows land.
  • The determinant is the factor by which areas change. Zero means space was flattened.
Open the lesson

Questions

What is matrix?
A rectangular grid of numbers. Multiplying a vector by a matrix transforms it into a new vector.
Where is matrix used in AI?
A matrix is a grid of numbers and also a machine. Feed it a vector and it returns a new one. Watching what it does to a whole plane makes it easy to understand.
What is the key idea to remember about matrix?
Matrix times vector: dot each row of the matrix with the vector.
Where can I learn matrix step by step?
In the lesson “Matrices move space” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

See it in 3D on the blog

  • What does a matrix actually do? Watch it stretch space4 min

Related terms

  • Activation function
  • Bias
  • Determinant
  • Layer
  • Tensor
  • Transpose