File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ namespace eigenpy
5454
5555 namespace bp = boost::python;
5656
57- struct PyMatrixType
57+ struct NumpyType
5858 {
5959
60- static PyMatrixType & getInstance ()
60+ static NumpyType & getInstance ()
6161 {
62- static PyMatrixType instance;
62+ static NumpyType instance;
6363 return instance;
6464 }
6565
@@ -100,7 +100,7 @@ namespace eigenpy
100100 }
101101
102102 protected:
103- PyMatrixType ()
103+ NumpyType ()
104104 {
105105 pyModule = bp::import (" numpy" );
106106
@@ -208,7 +208,7 @@ namespace eigenpy
208208
209209 EigenObjectAllocator<MatType>::convert (mat,pyArray);
210210
211- return PyMatrixType ::getInstance ().make (pyArray).ptr ();
211+ return NumpyType ::getInstance ().make (pyArray).ptr ();
212212 }
213213 };
214214
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ namespace eigenpy
2525 using namespace Eigen ;
2626 Exception::registerException ();
2727
28- bp::def (" setNumpyType" ,&PyMatrixType ::setNumpyType,
28+ bp::def (" setNumpyType" ,&NumpyType ::setNumpyType,
2929 bp::arg (" Numpy type (np.ndarray or np.matrix)" ),
3030 " Change the type returned by the converters from an Eigen object." );
3131
32- bp::def (" switchToNumpyArray" ,&PyMatrixType ::switchToNumpyArray,
32+ bp::def (" switchToNumpyArray" ,&NumpyType ::switchToNumpyArray,
3333 " Set the conversion from Eigen::Matrix to numpy.ndarray." );
3434
35- bp::def (" switchToNumpyMatrix" ,&PyMatrixType ::switchToNumpyMatrix,
35+ bp::def (" switchToNumpyMatrix" ,&NumpyType ::switchToNumpyMatrix,
3636 " Set the conversion from Eigen::Matrix to numpy.matrix." );
3737
3838 ENABLE_SPECIFIC_MATRIX_TYPE (MatrixXd);
You can’t perform that action at this time.
0 commit comments