Welcome to Numba Documentation 📚
Numba is a just-in-time (JIT) compiler for Python that translates a subset of Python code into fast machine code. It's designed to work with NumPy arrays and is particularly effective for numerical computing tasks.
Key Features
- Speed Optimization: Accelerate numerical computations with GPU or CPU support.
- Seamless Integration: Works directly with NumPy and CUDA-enabled GPUs.
- Easy to Use: Decorate functions with
@jit
for automatic compilation.
For deeper insights, check our official guide to explore advanced usage.
Getting Started
- Install Numba via pip:
pip install numba
- Import and decorate functions:
from numba import jit @jit def add(a, b): return a + b
- Run your code to experience the speed boost!
Explore more at Numba Tutorials or API Reference.