The NumPy array: a structure for efficient numerical computation - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Journal Articles Computing in Science and Engineering Year : 2011

The NumPy array: a structure for efficient numerical computation

Abstract

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
Origin : Files produced by the author(s)

Dates and versions

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

Identifiers

Cite

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⟩
7676 View
28996 Download

Altmetric

Share

Gmail Facebook X LinkedIn More