English

The NumPy array: a structure for efficient numerical computation

Mathematical Software 2011-03-14 v1

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.

Keywords

Cite

@article{arxiv.1102.1523,
  title  = {The NumPy array: a structure for efficient numerical computation},
  author = {Stefan Van Der Walt and S. Chris Colbert and Gaël Varoquaux},
  journal= {arXiv preprint arXiv:1102.1523},
  year   = {2011}
}
R2 v1 2026-06-21T17:23:08.257Z