18 lines
		
	
	
		
			661 B
		
	
	
	
		
			C++
		
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			661 B
		
	
	
	
		
			C++
		
	
	
/* Please refer to:
 | 
						|
 * https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html
 | 
						|
 * These are required to save one copy operation on Python calls.
 | 
						|
 *
 | 
						|
 * NOTES
 | 
						|
 * =================
 | 
						|
 *
 | 
						|
 * `py::bind_vector` and similar machinery gives the std container a Python-like
 | 
						|
 * interface, but without the `<pybind11/stl.h>` copying mechanism. Combined
 | 
						|
 * with `PYBIND11_MAKE_OPAQUE` this allows the types to be modified with Python,
 | 
						|
 * and saves one copy operation.
 | 
						|
 */
 | 
						|
 | 
						|
py::bind_map<gtsam::IndexPairSetMap>(m_, "IndexPairSetMap");
 | 
						|
py::bind_vector<gtsam::IndexPairVector>(m_, "IndexPairVector");
 | 
						|
 | 
						|
py::bind_vector<std::vector<gtsam::Matrix> >(m_, "JacobianVector");
 |