Lessons 2.1 through 2.4 covered vectors, matrices, dot products, norms, multiplication, and eigenvalues on paper. This lab puts every one of those ideas into actual running Python code using NumPy — the library that every other tool in this course track (pandas, scikit-learn, PyTorch) is ultimately built on top of.
1-A 2-A 3-A 4-A | 5 3 6 zeros 7 = np.dot([1,2],[3,4]) -> 11 8 = np.eye(2) @ A -> A 9 = C-optimised vectorised operations on whole arrays | 10 = A @ np.linalg.inv(A) is approx np.eye(n)