We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d8d5c commit ce9e361Copy full SHA for ce9e361
unittest/matrix.cpp
@@ -72,8 +72,15 @@ Eigen::MatrixXd reflex(const MatType & M, bool verbose)
72
return Eigen::MatrixXd(M);
73
}
74
75
+template<typename MatrixDerived>
76
+MatrixDerived base(const Eigen::MatrixBase<MatrixDerived> & m)
77
+{
78
+ return m.derived();
79
+}
80
+
81
BOOST_PYTHON_MODULE(matrix)
82
{
83
+ using namespace Eigen;
84
namespace bp = boost::python;
85
eigenpy::enableEigenPy();
86
@@ -92,4 +99,7 @@ BOOST_PYTHON_MODULE(matrix)
92
99
93
100
bp::def("emptyVector", emptyVector);
94
101
bp::def("emptyMatrix", emptyMatrix);
102
103
+ bp::def("base", base<VectorXd>);
104
+ bp::def("base", base<MatrixXd>);
95
105
0 commit comments