NumPy

/NUM-pie/ · noun · Development · Origin: 2005

Definitions

  1. The foundational Python library for numerical computing, built around the ndarray: a fixed-type, contiguous, multi-dimensional array whose operations run in compiled C rather than the Python interpreter. Created by Travis Oliphant in 2005 by unifying the earlier Numeric and Numarray projects, it lets code express whole-array arithmetic (vectorisation) instead of Python loops, often running orders of magnitude faster. Broadcasting rules allow arrays of different but compatible shapes to be combined without copying, and views let slices share memory with the original array, which is efficient but a common source of surprise mutations. NumPy supplies linear algebra, random number generation, and Fourier transforms, but its larger importance is as a shared data format: pandas, SciPy, scikit-learn, and Matplotlib all build on the ndarray, and its buffer protocol and array API shape how GPU libraries such as CuPy and JAX present themselves.

    In plain English: A Python library that makes math on large sets of numbers extremely fast — the engine underneath most data science and AI tools.

    Example: The image processing pipeline converted each photo to a NumPy array of pixel values before applying the convolutional filters.

Related Terms

Comparisons Featuring This Term