qmetrics.net

Numba

NumPy-aware JIT compiler for numerical Python functions

Numba screenshot

Numba is an open-source optimizer that compiles numerical Python and NumPy code to machine code via LLVM, often at runtime.

Overview

Numba is sponsored by Anaconda, Inc. and uses the LLVM project to generate machine code from Python syntax. It can compile much of numerically oriented Python, including many NumPy functions, without replacing the interpreter or requiring a separate compile step before run.

Decorators such as @njit turn functions into compiled versions. Numba supports automatic loop parallelization on CPUs, SIMD vectorization where the hardware allows, GPU code generation with NVIDIA CUDA, universal functions that broadcast like NumPy, and C callbacks.

It is built around NumPy arrays and array dtypes or layouts. It is documented to work with Jupyter notebooks and with distributed frameworks such as Dask and Spark. Prebuilt binaries are offered via conda and pip wheels for many platform combinations; supported CPUs include x86, POWER, and ARM, including Apple M1, with Windows, macOS, and Linux mentioned for deployments.

Key features

  • LLVM-based JIT compilation
  • NumPy function support
  • CPU parallel loops via decorators
  • NVIDIA CUDA GPU kernels
  • SIMD vectorization of loops
  • njit decorator workflow
  • Jupyter notebook compatibility
  • pip and conda packages

Use cases

  • Accelerating NumPy-heavy Python
  • Monte Carlo style simulations
  • Parallel CPU numerical loops
  • GPU kernels from Python
  • Scientific computing in notebooks

Tags

Similar software

NumPy

Scientific computing arrays and numerical Python tools

Core Python package for N-dimensional arrays, broadcasting, linear algebra, Fourier transforms, and random numbers used across science and data work.

  • N-dimensional array object
  • Broadcasting operations
  • Linear algebra routines
PythonWebDetails →
★ 33.6k⟳ todayBSD-3-Clause

SciPy

Python library for scientific and numerical computing

SciPy adds algorithms for statistics, optimization, integration, linear algebra, signal processing, and related scientific tasks on top of NumPy. It installs as a Python package used across common desktop operating systems.

  • NumPy array integration
  • Numerical integration routines
  • Optimization algorithms
PythonDetails →
★ 15.3k⟳ todayBSD-3-Clause

SymPy

Pure Python computer algebra and symbolic math library

SymPy performs symbolic mathematics in Python, aiming to be a full computer algebra system while staying lightweight. Install via pip, conda, or Anaconda.

  • Symbolic expression manipulation
  • Pure Python implementation
  • Interactive isympy console
PythonCLIDetails →
★ 15.2k⟳ todayBSD-3-Clause

stdlib

Numerical and scientific standard library for JavaScript

stdlib brings mathematics, statistics, streams, and data utilities to JavaScript and TypeScript in browsers and Node.js, with a decomposable package layout.

  • Mathematics and statistics routines
  • Decomposable package architecture
  • Browser and Node.js execution
JavaScriptWebDetails →
★ 6k⟳ todayApache-2.0

Astropy

Core Python library for astronomy and astrophysics

Astropy is the central Python package for astronomy developed by the Astropy Project. It standardizes common astronomy data structures and algorithms.

  • Unified astronomy Python APIs
  • PyPI-installable core package
  • Affiliated package ecosystem
PythonDetails →
★ 5.4k⟳ todayBSD-3-Clause

DeepXDE

Scientific machine learning library for physics-informed models

DeepXDE implements physics-informed neural networks, DeepONet operators, and multifidelity networks with several deep-learning backends and rich PDE geometry support.

  • Physics-informed neural networks
  • DeepONet and MIONet operators
  • Multifidelity neural networks
PythonDockerDetails →
★ 4.5k⟳ 18 days agoLGPL-2.1