ABSTRACT

In this chapter, we present matrices and the important Python libraries for working with them. The chapter is organized in two distinct parts. In the first part, we will discuss the basics of matrices and how they are structured. We revisit vectors and the dot and cross products, and see how they can be represented as a matrix and a matrix operation. We follow with a discussion of matrix arithmetic and other operations on matrices. In the second part of this chapter, we will demonstrate how to apply matrices to solve systems of linear equations and how to use them to represent linear transformations. We conclude with the topics of eigenvectors, eigenvalues, and matrix diagonalization, and how to evaluate them in Python.