23 #include <pybind11/pybind11.h>
24 #include <pybind11/stl.h>
26 #include "ndarray/pybind11.h"
35 using namespace py::literals;
42 using ClsField = py::class_<TransformBoundedField, std::shared_ptr<TransformBoundedField>, BoundedField>;
48 cls.def(py::init<lsst::geom::Box2I const &, TransformBoundedField::Transform const &>(),
"bbox"_a,
51 table::io::python::addPersistableMethods<TransformBoundedField>(
cls);
53 cls.def(
"__mul__", &TransformBoundedField::operator*, py::is_operator());
54 cls.def(
"__eq__", &TransformBoundedField::operator==, py::is_operator());
56 cls.def(
"getTransform", &TransformBoundedField::getTransform);
57 cls.def(
"evaluate", (
double (BoundedField::*)(
double,
double)
const) & BoundedField::evaluate);
59 (ndarray::Array<double, 1, 1>(TransformBoundedField::*)(
60 ndarray::Array<double const, 1>
const &, ndarray::Array<double const, 1>
const &)
const) &
61 TransformBoundedField::evaluate);
63 TransformBoundedField::evaluate);