Overview
Teaching: 20 min
Exercises: 20 minQuestions
How can I store and manipulate arrays?
How can I do linear algebra?
Objectives
Write programs that create and load arrays using NumPy.
Replace
for
loops with vectorized indexing operations.Perform linear algebra operations on NumPy arrays.
FIXME
Key Points
Use NumPy arrays to store multi-dimensional arrays.
Algebraic matrices are a special case of arrays.
Array operations make (most) loops unnecessary.