# fast-kalman > Fixed-size C++23 Kalman filters with nanobind Python bindings. Specialized for > tiny (1×1 through 8×8) state-space estimation — about 2 orders of magnitude > faster than OpenCV's `cv::KalmanFilter` on the small shapes that dominate > streaming finance, IMU sensor fusion, and per-pixel tracking. One ABI3 > Python wheel per platform runs on CPython ≥ 3.12. The library has seven filter kinds (Linear, Adaptive, Extended, IteratedExtended, Unscented, Ensemble, plus a SoA Bank for K-symbol fan-out) and a runtime-sized fallback for any `(nx, nz)` outside the 9 Tier-1/Tier-2 templated pairs. ## Documentation - [docs/index.md](docs/index.md): Overview and navigation across all docs. - [docs/getting-started.md](docs/getting-started.md): Install, import, first filter (Python and C++). - [docs/python-api.md](docs/python-api.md): Full Python API reference. Every factory, class, property, and method. - [docs/cpp-api.md](docs/cpp-api.md): C++ API reference. Headers, templates, `Vec`/`Mat`/`Dyn` types. - [docs/filters.md](docs/filters.md): Catalog of the seven filter kinds and when to use each. - [docs/smoother.md](docs/smoother.md): RTS smoother and `smooth_with_bands` Gaussian confidence bands. - [docs/bank.md](docs/bank.md): `LinearKalmanFilterBank` — K independent filters in SoA layout for fan-out workloads. - [docs/tuning.md](docs/tuning.md): Estimating `Q`, `R`, and initial covariance from sample traces. - [docs/dispatch.md](docs/dispatch.md): Templated vs runtime-sized class dispatch; ISA backend selection at import. - [docs/build.md](docs/build.md): CMake options, multi-ISA wheel layout, abi3 conventions. - [docs/benchmarks.md](docs/benchmarks.md): Numbers vs `cv::KalmanFilter` for per-call and batched workloads. ## Source-of-truth headers - [include/kalman/kalman.hpp](include/kalman/kalman.hpp): Fixed-size templated filters (`LinearKalmanFilter` etc.) plus the `Vec`/`Mat` types and free helpers. - [include/kalman/dynamic.hpp](include/kalman/dynamic.hpp): Runtime-sized counterparts (`DynLinearKalmanFilter`, …) backed by `std::vector`. - [include/kalman/bank.hpp](include/kalman/bank.hpp): SoA `LinearKalmanFilterBank`. - [src/python/bindings.cpp](src/python/bindings.cpp): nanobind bindings. Per-call shape dispatch is in `construct_linear_dispatch` / `construct_adaptive_dispatch` / `construct_bank_dispatch`. - [python/kalman/__init__.py](python/kalman/__init__.py): Import-time SIMD backend selection via `goblin-cpu-features`; Python factory wrappers. ## Optional - [CHANGELOG.md](CHANGELOG.md): Release-by-release API and performance notes. - [README.md](README.md): Project introduction and quick-start (overlaps `docs/getting-started.md`). - [benchmarks/](benchmarks/): Runnable benchmark scripts that produced the numbers in `docs/benchmarks.md`. - [tests/](tests/): Pytest suite. `test_filterpy_reference.py` cross-checks against the canonical `filterpy` implementation. - [examples/](examples/): Standalone runnable examples (stock-trades, etc.).