The fundamental package for scientific computing with Python
open sourceBSD-3-Clause AND 0BSD AND MIT AND CC0-1.0self-hostablefree
NumPy is the core array library of scientific Python. It provides a fast N-dimensional array type whose vectorisation, indexing and broadcasting rules are the de facto standard for array computing, plus mathematical functions, random number generators, linear algebra, Fourier transforms and more, all implemented in optimised C code behind a Python API. Nearly every Python data and machine learning library builds on it or interoperates with it, including pandas, and it works with distributed, GPU and sparse array libraries. It is developed publicly on GitHub and distributed under the BSD 3-Clause licence.
Problems it solves
- do fast math on large arrays in Python without writing loops
- multiply matrices and solve linear algebra problems in Python
- generate random numbers and samples for simulations
- run a Fourier transform on signal data in Python
- store numeric data compactly in memory instead of Python lists
- vectorise slow Python numeric code
Features
- N-dimensional array object
- vectorisation, indexing and broadcasting
- comprehensive mathematical functions
- random number generators
- linear algebra routines
- Fourier transforms
- optimised C core
- interoperates with distributed, GPU and sparse array libraries
Capabilities
| Has official SDKs | plan not known |
|---|
Alternatives
The same job
These do what NumPy does.
- JAX Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more