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.
numba_performance

For deeper insights, check our official guide to explore advanced usage.

Getting Started

  1. Install Numba via pip: pip install numba
  2. Import and decorate functions:
    from numba import jit  
    @jit  
    def add(a, b):  
        return a + b  
    
  3. Run your code to experience the speed boost!
numba_gpu

Explore more at Numba Tutorials or API Reference.