25 #include <pybind11/pybind11.h>
26 #include <pybind11/stl.h>
27 #include "ndarray/pybind11.h"
33 using namespace pybind11::literals;
39 py::module::import(
"astshim.mapping");
41 py::class_<PolyMap, std::shared_ptr<PolyMap>, Mapping>
cls(mod,
"PolyMap");
43 cls.def(py::init<ConstArray2D const &, ConstArray2D const &, std::string const &>(),
"coeff_f"_a,
44 "coeff_i"_a,
"options"_a =
"IterInverse=0");
45 cls.def(py::init<ConstArray2D const &, int, std::string const &>(),
"coeff_f"_a,
"nout"_a,
46 "options"_a =
"IterInverse=0");
47 cls.def(py::init<PolyMap const &>());
49 cls.def_property_readonly(
"iterInverse", &PolyMap::getIterInverse);
50 cls.def_property_readonly(
"nIterInverse", &PolyMap::getNIterInverse);
51 cls.def_property_readonly(
"tolInverse", &PolyMap::getTolInverse);
53 cls.def(
"copy", &PolyMap::copy);
54 cls.def(
"polyTran", &PolyMap::polyTran,
"forward"_a,
"acc"_a,
"maxacc"_a,
"maxorder"_a,
"lbnd"_a,