-
Notifications
You must be signed in to change notification settings - Fork 222
Description
To implement a high-performance 1D interpolation module in fortran_stdlib, I propose a design centered on a unified stdlib_interpolation interface that leverages the fypp preprocessor to ensure type-safety across all supported real kinds (sp, dp, xdp, qp). The core architecture will utilize an
The cubic spline implementation will require the internal integration of a robust tridiagonal matrix solver, specifically the Thomas Algorithm, to compute the second derivatives at each knot point under specified boundary conditions (e.g., natural or clamped). By embedding this numerical logic directly into stdlib, we provide a "Fortran-native" solution that maintains a clear separation of responsibilities while eliminating the overhead of linking against external libraries like LAPACK for common fitting tasks. This feature directly supports the stdlib mission by providing a scalable, preprocessed framework that can eventually be extended to bilinear and bicubic interpolation for multi-dimensional data arrays.