Hacker News new | ask | show | jobs
by nnnnico 1393 days ago
sorry if too out of topic, but this looks great and i was just in need of something like it for c++ instead. does anyone know of similar libs?
2 comments

In addition the already mentioned GSL, there are two more I know of and which I have used for spline interpolation in C/C++: John Burkardt's spline library[1] and Netlib[2]. The pppack library from Netlib is Fortran code so you have to write a wrapper when using it from C++.

[1] https://people.sc.fsu.edu/~jburkardt/cpp_src/spline/spline.h...

[2] https://netlib.org/pppack/

EDIT: A quick internet search (in my case for cubic splines) gave more relevant results, so dependent on your needs, just look around: https://www.bing.com/search?q=cubic+spline+c%2B%2B

My first bet would be the GSL library: https://www.gnu.org/software/gsl/doc/html/