specializations/discrete.h
Go to the documentation of this file.
1 /* Please refer to:
2  * https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html
3  * These are required to save one copy operation on Python calls.
4  *
5  * NOTES
6  * =================
7  *
8  * `py::bind_vector` and similar machinery gives the std container a Python-like
9  * interface, but without the `<pybind11/stl.h>` copying mechanism. Combined
10  * with `PYBIND11_MAKE_OPAQUE` this allows the types to be modified with Python,
11  * and saves one copy operation.
12  */
13 
14 // Seems this is not a good idea with inherited stl
15 //py::bind_vector<std::vector<gtsam::DiscreteKey>>(m_, "DiscreteKeys");
16 
17 py::bind_map<gtsam::DiscreteValues>(m_, "DiscreteValues");


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:10