12 #include <pybind11/eigen.h>
13 #include <pybind11/functional.h>
14 #include <pybind11/pybind11.h>
15 #include <pybind11/stl.h>
17 namespace py = pybind11;
20 py::cpp_function createAttributeSetter(
const std::string name) {
22 object.attributeTyped<T>(name)->set(value);
27 py::cpp_function createAttributeGetter(
const std::string name) {
29 return object.attributeTyped<T>(name)->get();
33 CPS::Matrix zeroMatrix(
int dim);