specializations/custom.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 // Added so that CustomFactor can pass the JacobianVector to the C++ side
15 py::bind_vector<std::vector<gtsam::Matrix> >(m_, "JacobianVector");


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:32:18