remove unnecessary preamble and specializations for hybrid wrapping

release/4.3a0
Varun Agrawal 2022-12-29 08:32:43 +05:30
parent 7c91fe82b4
commit 873f5baf56
2 changed files with 0 additions and 14 deletions

View File

@ -11,12 +11,3 @@
* mutations on Python side will not be reflected on C++.
*/
#include <pybind11/stl.h>
#ifdef GTSAM_ALLOCATOR_TBB
PYBIND11_MAKE_OPAQUE(std::vector<gtsam::Key, tbb::tbb_allocator<gtsam::Key>>);
#else
PYBIND11_MAKE_OPAQUE(std::vector<gtsam::Key>);
#endif
PYBIND11_MAKE_OPAQUE(std::vector<gtsam::GaussianFactor::shared_ptr>);
PYBIND11_MAKE_OPAQUE(std::vector<gtsam::GaussianConditional::shared_ptr>);

View File

@ -1,6 +1 @@
py::bind_vector<std::vector<gtsam::GaussianFactor::shared_ptr> >(m_, "GaussianFactorVector");
py::implicitly_convertible<py::list, std::vector<gtsam::GaussianFactor::shared_ptr> >();
py::bind_vector<std::vector<gtsam::GaussianConditional::shared_ptr> >(m_, "GaussianConditionalVector");
py::implicitly_convertible<py::list, std::vector<gtsam::GaussianConditional::shared_ptr> >();