Linear algebra is one of the essential building blocks of computational mathematics. The objects of linear algebra are vectors and matrices. The package NumPy includes all the necessary tools to manipulate those objects.
The first task is to build matrices and vectors or to alter existing ones by slicing. The other main task is the dot operation, which embodies most linear algebra operations (scalar product, matrix-vector product, and matrix-matrix product). Finally, various methods are available to solve linear problems.
The following topics will be covered in this chapter:
- Overview of the array type
- Mathematical preliminaries
- The array type
- Accessing array entries
- Functions to construct arrays
- Accessing and changing the shape
- Stacking
- Functions acting on arrays
- Linear algebra methods...