The NumPy array: a structure for efficient numerical computation - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Article Dans Une Revue Computing in Science and Engineering Année : 2011

The NumPy array: a structure for efficient numerical computation

Résumé

In the Python world, NumPy arrays are the standard representation for numerical data. Here, we show how these arrays enable efficient implementation of numerical computations in a high-level language. Overall, three techniques are applied to improve performance: vectorizing calculations, avoiding copying data in memory, and minimizing operation counts. We first present the NumPy array structure, then show how to use it for efficient computation, and finally how to share array data with other libraries.
Fichier principal
Vignette du fichier
numpy_final.pdf (146.72 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

inria-00564007 , version 1 (07-02-2011)

Identifiants

Citer

Stefan van Der Walt, S. Chris Colbert, Gaël Varoquaux. The NumPy array: a structure for efficient numerical computation. Computing in Science and Engineering, 2011, 13 (2), pp.22-30. ⟨10.1109/MCSE.2011.37⟩. ⟨inria-00564007⟩
7746 Consultations
29187 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More