#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "lsst/afw/math/detail/Spline.h"
Go to the source code of this file.
◆ PYBIND11_MODULE()
PYBIND11_MODULE |
( |
spline |
, |
|
|
mod |
|
|
) |
| |
Definition at line 34 of file spline.cc.
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);