Intuition
A matrix is a rectangular block of numbers. For everything that follows it is best read as a row of column vectors standing side by side, because that is how a system of equations produced it.
A timetable is a block too. Reading down a column gives one day, reading across a row gives one hour, and both readings describe the same timetable.
Matrices and their shape
An m by n matrix has m rows and n columns, and the row count is always written first. The entry in row i and column j is , again row first. The same block read as n column vectors of is the reading this chapter uses. Two matrices are equal when they have the same shape and agree in every entry.
How to read a matrix
- is when it has m rows and n columns.
- sits in row i and column j, so is row 2, column 3.
Applications
Practice
Rows first
is
Three rows of two numbers each, so three comes first.
Try it
What is the shape of ?
Row index, then column index
in , and
The two indices name different entries, so their order matters.
Try it
Let . What is ?
A column is a vector
has
Down the first column: 1 then 3.
Try it
Read as columns. What is ?
Shape comes before entries
One is and the other , so the comparison stops there.
Try it
is and is . What follows?
Try it
An matrix is read as columns. How many columns are there, and where do they live?