Skip to content
Snippets Groups Projects
Commit ce9e361c authored by jcarpent's avatar jcarpent
Browse files

[Test] Add test of Eigen::MatrixBase

parent 97d8d5cd
No related branches found
No related tags found
No related merge requests found
......@@ -72,8 +72,15 @@ Eigen::MatrixXd reflex(const MatType & M, bool verbose)
return Eigen::MatrixXd(M);
}
template<typename MatrixDerived>
MatrixDerived base(const Eigen::MatrixBase<MatrixDerived> & m)
{
return m.derived();
}
BOOST_PYTHON_MODULE(matrix)
{
using namespace Eigen;
namespace bp = boost::python;
eigenpy::enableEigenPy();
......@@ -92,4 +99,7 @@ BOOST_PYTHON_MODULE(matrix)
bp::def("emptyVector", emptyVector);
bp::def("emptyMatrix", emptyMatrix);
bp::def("base", base<VectorXd>);
bp::def("base", base<MatrixXd>);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment