July 2021
Intermediate to advanced
392 pages
9h 40m
English
In this chapter, we will explain some more advanced aspects of arrays. First, we will cover the notion of an array view – a concept that a NumPy programmer absolutely must be aware of to avoid hard-to-debug programming errors. Then, Boolean arrays will be introduced along with the ways to compare arrays. Furthermore, we will briefly describe indexing and vectorization, explaining special topics such as broadcasting and sparse matrices.
In this chapter, we will be covering the following topics:
In order to control precisely how memory is used, NumPy offers the concept of a view of ...