Skip to content

Commit da54f6f

Browse files
committed
python: expose getNumpyType
1 parent 54a9826 commit da54f6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/eigenpy.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ namespace eigenpy
1717
bp::def("setNumpyType",&NumpyType::setNumpyType,
1818
bp::arg("Numpy type (np.ndarray or np.matrix)"),
1919
"Change the type returned by the converters from an Eigen object.");
20+
21+
bp::def("getNumpyType",&NumpyType::getNumpyType,
22+
"Get the Numpy type returned by the converters from an Eigen object.");
2023

2124
bp::def("switchToNumpyArray",&NumpyType::switchToNumpyArray,
2225
"Set the conversion from Eigen::Matrix to numpy.ndarray.");

0 commit comments

Comments
 (0)