Commit 07ef20ea authored by Damien L-G's avatar Damien L-G

Add {bilinear,bicubic}_eval_extrap functions to the interface

parent 8d2ef5c8
......@@ -28,6 +28,10 @@ double bilinear_eval_deriv_xy(char const *o, double x, double y) {
auto spline = Map<Spline2D<Bilinear>>::get_spline(o);
return spline->eval_deriv_xy(x, y);
}
double bilinear_eval_extrap(char const *o, double x, double y) {
auto spline = Map<Spline2D<Bilinear>>::get_spline(o);
return spline->eval_extrap(x, y);
}
double bicubic_eval(char const *o, double x, double y) {
auto spline = Map<Spline2D<Bicubic>>::get_spline(o);
......@@ -53,6 +57,10 @@ double bicubic_eval_deriv_xy(char const *o, double x, double y) {
auto spline = Map<Spline2D<Bicubic>>::get_spline(o);
return spline->eval_deriv_xy(x, y);
}
double bicubic_eval_extrap(char const *o, double x, double y) {
auto spline = Map<Spline2D<Bicubic>>::get_spline(o);
return spline->eval_extrap(x, y);
}
// NOTE can get rid of these with C++17
char constexpr Interp2DTypeTraits<Bicubic>::name[];
......
......@@ -33,6 +33,7 @@ EXPORT double bilinear_eval_deriv_y(char const *o, double x, double y);
EXPORT double bilinear_eval_deriv_xx(char const *o, double x, double y);
EXPORT double bilinear_eval_deriv_yy(char const *o, double x, double y);
EXPORT double bilinear_eval_deriv_xy(char const *o, double x, double y);
EXPORT double bilinear_eval_extrap(char const *o, double x, double y);
EXPORT double bicubic_eval(char const *o, double x, double y);
EXPORT double bicubic_eval_deriv_x(char const *o, double x, double y);
......@@ -40,6 +41,7 @@ EXPORT double bicubic_eval_deriv_y(char const *o, double x, double y);
EXPORT double bicubic_eval_deriv_xx(char const *o, double x, double y);
EXPORT double bicubic_eval_deriv_yy(char const *o, double x, double y);
EXPORT double bicubic_eval_deriv_xy(char const *o, double x, double y);
EXPORT double bicubic_eval_extrap(char const *o, double x, double y);
#ifdef __cplusplus
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment