inria-00564007, version 1
The NumPy array: a structure for efficient numerical computation
Stefan Van Der Walt
1S. Chris Colbert
2Gaël Varoquaux
3
Computing in Science and Engineering 13, 2 (2011) 22-30
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.
- 1: Vision and Learning Group
- Stellenbosch University
- 2: Enthought Inc
- Enthought Inc
- 3: PARIETAL (INRIA Saclay - Ile de France)
- INRIA
- Domain : Computer Science/Software Engineering
- Keywords : Python – scientific computing – array
- inria-00564007, version 1
- http://hal.inria.fr/inria-00564007
- oai:hal.inria.fr:inria-00564007
- From: Gaël Varoquaux
- Submitted on: Monday, 7 February 2011 17:13:20
- Updated on: Wednesday, 19 June 2013 15:12:05






Associated documents

Export