7 mystruct(
const Eigen::Vector3d&
x,
const Eigen::Vector4d&
y) : x_(x), y_(y) {}
11 using namespace Eigen;
14 bp::class_<mystruct>(
"MyStruct", bp::init<const Vector3d&, const Vector4d&>())
17 bp::make_getter(&
mystruct::x_, bp::return_internal_reference<>()),
21 bp::make_getter(&
mystruct::y_, bp::return_internal_reference<>()),
void EIGENPY_DLLAPI enableEigenPy()
mystruct(const Eigen::Vector3d &x, const Eigen::Vector4d &y)
BOOST_PYTHON_MODULE(user_struct)