Cubic Interpolation in d-Dimensions and Derivatives
See documentation.
Use the makefile: make and make install to build the shared library. The default location is /usr/local/lib for the library and /usr/local/include for the headers.
There is a convenient header /include/dcubic such that we can just use #include <dcubic> after installation.
It is a shared library - use g++ -std=c++14 -ldcubic my_program.cpp -o my_program.o.
The namespace is: dcu.
For code, see the examples folder.
- Interpolation in 1D
- Interpolation in 2D
- Derivative with respect to p in 1D
- Derivative with respect to p in 2D
- Derivative with respect to p in 1D, near the boundary
- Derivative with respect to p in 2D, near the boundary
- Derivative with respect to x in 1D
- Derivative with respect to x in 2D
For some comparable analytic formula, see this Mathematica file.