23 #include <pybind11/pybind11.h>
25 #include <pybind11/stl.h>
30 using namespace pybind11::literals;
36 py::class_<Spline> clsSpline(mod,
"Spline");
37 py::class_<TautSpline, Spline> clsTautSpline(mod,
"TautSpline");
40 py::enum_<TautSpline::Symmetry>(clsTautSpline,
"Symmetry")
41 .value(
"Unknown", TautSpline::Symmetry::Unknown)
42 .value(
"Odd", TautSpline::Symmetry::Odd)
43 .value(
"Even", TautSpline::Symmetry::Even)
51 clsSpline.def(
"interpolate", &Spline::interpolate);
52 clsSpline.def(
"derivative", &Spline::derivative);
57 clsTautSpline.def(
"roots", &TautSpline::roots);