RBFLAB · Scientific computing in Python
Radial basis functions.
From equations to solutions.
A Python library for interpolation and PDEs on scattered nodes. Start with an equation and a curved domain, or build local weights and sparse operators for your own algorithm. The tutorials connect each mathematical choice to the Python object that represents it.
pip install rbflabPython 3.11+ · Open source · Source version 0.9.0
Explore the manual
Getting started
Install the library and solve a Poisson problem. Connect the equation, point cloud, discretization, and solution.
Tutorials
Follow the mathematics into code: interpolate data, solve PDEs on curved domains, and assemble your own sparse algorithm.
Mathematical foundations
Understand kernel conventions, polynomial constraints, local Hermite systems, conditioning, and error measures.
Python API reference
Inspect operators, local weights, sparse matrices, spaces, precision settings, and the available backends.
From approximation to your algorithm
RBFLAB 0.5 makes ordinary RBF-FD and Hermite constructions explicit through LocalApproximation. Declare source functionals and target operators, then assemble LHI and a heat time loop with sparse matrices. Install or upgrade to rbflab>=0.5 to use these interfaces.
Source version 0.9.0 builds mixed polynomial blocks in C++, sends indexed observations to workers, and supports native factor reuse. Existing Python/C++ LU Stokes LHI obtains its weights from the same engine. See the Stokes weight adapter and source installation instructions.
One problem, several numerical methods
Keep the equation and cloud, then change the approximation. The manual explains what each system solves for and how to assess its result.
| Method | Global unknowns | Matrix |
|---|---|---|
| Global collocation | Kernel expansion coefficients | Dense |
| Local Hermite interpolation | Interior solution-center values | Sparse |
| RBF finite differences | Nodal values | Sparse |
| Divergence-free Stokes | Velocity and pressure-space coefficients | Coupled |
Choose a problem and see how it works
For a guided learning sequence, choose interpolation, PDEs, or custom algorithms. Instructors can use the teaching guide and modification exercises.

Poisson with holes
Geometry, labels, symbolic forcing and a measured solution error.

Heat on a flower
Solve a forced transient equation with nonzero boundary data on a curved domain.

Build a flow algorithm
Staggered maps, wall values, convection and the full pressure–velocity block solve.
Each tutorial states its equations, numerical recipe and limitations. The cavity image illustrates an experimental coarse-cloud demonstration with a measured divergence defect; it is not a benchmark result. Explore the full learning route →
Tutorial module commands run from a source checkout. Some tutorials use a shared helper in the examples folder; keep that folder together. The cavity chapter shows the maintained solver itself, including assembly and the time loop.