How ttk592/spline works
This is a header-only C++ cubic-spline interpolation library. A caller supplies strictly increasing x/y samples and optional spline type, boundary conditions, and monotonicity settings; the library constructs a piecewise polynomial that can be evaluated, differentiated, or solved against a target value. The graph keeps construction, its numerical solver, and the distinct query capabilities separate. The README documents the public workflow; the sampled header excerpt supports construction, evaluation, and solver responsibilities, but does not show every internal call.
Main entry points: spline.h Spline construction
Components 10
Other components
- Library caller
- Spline API
src/spline.h - Boundary conditions
src/spline.h - Spline construction
src/spline.h - Band matrix solver
src/spline.h - Monotonic adjustment
src/spline.h - Value and derivatives
src/spline.h - Extrapolation
src/spline.h - Spline root solving
src/spline.h - Polynomial root helpers
src/spline.h
Connections 10
- Library caller → Spline API: supplies samples
README.md - Library caller → Boundary conditions: sets boundaries
README.md - Spline API → Spline construction: constructs spline
README.md - Boundary conditions → Spline construction: configures construction
README.md - Spline construction → Band matrix solver: solves system
src/spline.h - Library caller → Monotonic adjustment: requests adjustment
README.md - Library caller → Value and derivatives: queries value or derivative
README.md - Value and derivatives → Extrapolation: evaluates outside range
src/spline.h - Library caller → Spline root solving: requests roots
README.md - Spline root solving → Polynomial root helpers: uses root helpers
src/spline.h