A re-write of GSL's Interpolation in Rust.
The crates documentation can be found here
See todo list.
-
rsl-interpolationrequires LAPACK FFI, so you must use just one of the correspondingndarray_linalg features. -
In 2d Interpolation, the
zaarray must be defined in column-major (Fortran) style. This is done to comply with GSL's interface.
All of GSL's tests have been transferred in this crate.
Additionally, some extra tests have been added, with data computed directly from GSL, to cover untested cases. These are located in src/tests/c_gsl_tests/*.c. Their output can be saved and graphed with the GNU plotutils graph program.
GSL must be installed.
For the plots to work, gnuplot must be installed.
Example
make -C src/tests/c_gsl_tests # Run tests and create plots
open src/tests/c_gsl_tests/plots/akima.png # Open the graph image
make -C src/tests/c_gsl_tests clean # Cleanup