Search⌘ K

Typed list

Learn how to implement typed lists as dynamic, memory-aware structures in NumPy for custom vectorization. Understand the creation, storage, and access methods that improve ndarray functionality for specialized data manipulation.

Introduction

One of the strengths of NumPy is that it can be used to build new objects or to subclass the ndarray object. This later process is a bit tedious but it is worth the effort because it allows you to improve the ndarray object to suit your problem.

We’ll examine in the following section two real-world cases (typed list and memory-aware array) that are extensively used in the glumpy project (that I maintain).

What is a Typed list?

Typed list (also ...