Skip to content

Commit 15355e6

Browse files
authored
Merge pull request #59 from jcarpent/devel
Restoring previous removed code
2 parents 2d31330 + f5da751 commit 15355e6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
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

unittest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ ENDIF()
3535

3636
ADD_PYTHON_UNIT_TEST("py-matrix" "unittest/python/test_matrix.py" "unittest")
3737
ADD_PYTHON_UNIT_TEST("py-geometry" "unittest/python/test_geometry.py" "unittest")
38-
ADD_PYTHON_UNIT_TEST("py-switch" "unittest/python/test_switch.py" "unittest")
38+
ADD_PYTHON_UNIT_TEST("py-switch" "unittest/python/test_switch.py" "python/eigenpy")

0 commit comments

Comments
 (0)