From 657208e7b321941ccab80faf105d2abcf0037767 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Tue, 16 Apr 2019 10:46:13 +0200 Subject: [PATCH] core: restore previous NumpyAsMatrixType --- include/eigenpy/details.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/eigenpy/details.hpp b/include/eigenpy/details.hpp index ed7a3cb5..693a4b72 100644 --- a/include/eigenpy/details.hpp +++ b/include/eigenpy/details.hpp @@ -104,6 +104,8 @@ namespace eigenpy NumpyMatrixType = reinterpret_cast<PyTypeObject*>(NumpyMatrixObject.ptr()); NumpyArrayObject = pyModule.attr("ndarray"); NumpyArrayType = reinterpret_cast<PyTypeObject*>(NumpyArrayObject.ptr()); + NumpyAsMatrixObject = pyModule.attr("asmatrix"); + NumpyAsMatrixType = reinterpret_cast<PyTypeObject*>(NumpyAsMatrixObject.ptr()); CurrentNumpyType = NumpyMatrixObject; // default conversion } @@ -113,6 +115,7 @@ namespace eigenpy // Numpy types bp::object NumpyMatrixObject; PyTypeObject * NumpyMatrixType; + bp::object NumpyAsMatrixObject; PyTypeObject * NumpyAsMatrixType; bp::object NumpyArrayObject; PyTypeObject * NumpyArrayType; }; -- GitLab