File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,20 @@ void printVector(const eigenpy::Ref<MatType> & mat)
3636 printMatrix (mat);
3737}
3838
39- template <typename MatType>
40- void setOnes (eigenpy ::Ref<MatType> mat)
39+ template <typename MatType, int Options, typename StrideType >
40+ void setOnes (Eigen ::Ref<MatType,Options,StrideType > mat)
4141{
4242 mat.setOnes ();
4343}
4444
45+ template <typename MatType>
46+ void setOnes_wrap (eigenpy::Ref<MatType> mat)
47+ {
48+ setOnes (mat);
49+ }
50+
51+
52+
4553BOOST_PYTHON_MODULE (ref)
4654{
4755 namespace bp = boost::python;
@@ -53,7 +61,7 @@ BOOST_PYTHON_MODULE(ref)
5361
5462 bp::def (" printVector" , printVector<VectorXd>);
5563
56- bp::def (" setOnes" , setOnes <Vector3d>);
57- bp::def (" setOnes" , setOnes <VectorXd>);
58- bp::def (" setOnes" , setOnes <MatrixXd>);
64+ bp::def (" setOnes" , setOnes_wrap <Vector3d>);
65+ bp::def (" setOnes" , setOnes_wrap <VectorXd>);
66+ bp::def (" setOnes" , setOnes_wrap <MatrixXd>);
5967}
You can’t perform that action at this time.
0 commit comments