Commit 9961ef14 authored by jcarpent's avatar jcarpent
Browse files

[Test] Increase ref test with Eigen::Ref example

parent 80a2aff2
......@@ -36,12 +36,20 @@ void printVector(const eigenpy::Ref<MatType> & mat)
template<typename MatType>
void setOnes(eigenpy::Ref<MatType> mat)
template<typename MatType,int Options, typename StrideType>
void setOnes(Eigen::Ref<MatType,Options,StrideType> mat)
template<typename MatType>
void setOnes_wrap(eigenpy::Ref<MatType> mat)
namespace bp = boost::python;
......@@ -53,7 +61,7 @@ BOOST_PYTHON_MODULE(ref)
bp::def("printVector", printVector<VectorXd>);
bp::def("setOnes", setOnes<Vector3d>);
bp::def("setOnes", setOnes<VectorXd>);
bp::def("setOnes", setOnes<MatrixXd>);
bp::def("setOnes", setOnes_wrap<Vector3d>);
bp::def("setOnes", setOnes_wrap<VectorXd>);
bp::def("setOnes", setOnes_wrap<MatrixXd>);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment