Core Python package for N-dimensional arrays, broadcasting, linear algebra, Fourier transforms, and random numbers used across science and data work.
Overview
NumPy is the foundational Python package for scientific and numerical computing. Its central N-dimensional array type and broadcasting rules underpin much of the Python data and machine learning stack.
The library ships vectorized operations, linear algebra routines, Fourier transforms, random number generators, and hooks to integrate C, C++, and Fortran code. High-level Python syntax sits on optimized native implementations intended to combine flexibility with compiled speed.
NumPy interoperates with GPU, distributed, and sparse array libraries and serves as a common API surface other array frameworks emulate. The project website highlights adoption across domains from data science to imaging, networks, geospatial tools, and quantum computing ecosystems.
An in-browser interactive shell on the project site lets visitors try small array examples without a local install, while typical use remains `import numpy` inside Python applications and notebooks.
Key features
- N-dimensional array object
- Broadcasting operations
- Linear algebra routines
- Fourier transforms
- Random number generators
- C and Fortran integration
- Wide hardware support
- Ecosystem interoperability
Use cases
- Numerical research in Python
- Data preprocessing for ML
- Signal and image array math
- Teaching scientific programming
- Backend for scientific libraries