Skip to content

Commit 6d2872b

Browse files
committed
core: revert previous settings
A matrix with a single column should be considered as classic np.array
1 parent 17f3752 commit 6d2872b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/eigenpy/details.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ namespace eigenpy
264264

265265
PyArrayObject* pyArray;
266266
// Allocate Python memory
267-
if(C == 1 && NumpyType::getType() == ARRAY_TYPE && MatType::IsVectorAtCompileTime) // Handle array with a single dimension
267+
if(C == 1 && NumpyType::getType() == ARRAY_TYPE) // Handle array with a single dimension
268268
{
269269
npy_intp shape[1] = { R };
270270
pyArray = (PyArrayObject*) PyArray_SimpleNew(1, shape,

0 commit comments

Comments
 (0)