From da54f6fecd935343427c9aa39fc41ecabe2cccef Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Thu, 14 Nov 2019 17:42:45 +0100
Subject: [PATCH] python: expose getNumpyType

---
 src/eigenpy.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/eigenpy.cpp b/src/eigenpy.cpp
index dd245f7..25bd51a 100644
--- a/src/eigenpy.cpp
+++ b/src/eigenpy.cpp
@@ -17,6 +17,9 @@ namespace eigenpy
     bp::def("setNumpyType",&NumpyType::setNumpyType,
             bp::arg("Numpy type (np.ndarray or np.matrix)"),
             "Change the type returned by the converters from an Eigen object.");
+            
+    bp::def("getNumpyType",&NumpyType::getNumpyType,
+            "Get the Numpy type returned by the converters from an Eigen object.");
     
     bp::def("switchToNumpyArray",&NumpyType::switchToNumpyArray,
             "Set the conversion from Eigen::Matrix to numpy.ndarray.");
-- 
GitLab