Skip to content

Commit 657208e

Browse files
committed
core: restore previous NumpyAsMatrixType
1 parent 65bd70a commit 657208e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/eigenpy/details.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ namespace eigenpy
104104
NumpyMatrixType = reinterpret_cast<PyTypeObject*>(NumpyMatrixObject.ptr());
105105
NumpyArrayObject = pyModule.attr("ndarray");
106106
NumpyArrayType = reinterpret_cast<PyTypeObject*>(NumpyArrayObject.ptr());
107+
NumpyAsMatrixObject = pyModule.attr("asmatrix");
108+
NumpyAsMatrixType = reinterpret_cast<PyTypeObject*>(NumpyAsMatrixObject.ptr());
107109

108110
CurrentNumpyType = NumpyMatrixObject; // default conversion
109111
}
@@ -113,6 +115,7 @@ namespace eigenpy
113115

114116
// Numpy types
115117
bp::object NumpyMatrixObject; PyTypeObject * NumpyMatrixType;
118+
bp::object NumpyAsMatrixObject; PyTypeObject * NumpyAsMatrixType;
116119
bp::object NumpyArrayObject; PyTypeObject * NumpyArrayType;
117120
};
118121

0 commit comments

Comments
 (0)