Skip to content
Snippets Groups Projects
Verified Commit 6d2872bf authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: revert previous settings

A matrix with a single column should be considered as classic np.array
parent 17f37527
Branches
Tags
No related merge requests found
......@@ -264,7 +264,7 @@ namespace eigenpy
PyArrayObject* pyArray;
// Allocate Python memory
if(C == 1 && NumpyType::getType() == ARRAY_TYPE && MatType::IsVectorAtCompileTime) // Handle array with a single dimension
if(C == 1 && NumpyType::getType() == ARRAY_TYPE) // Handle array with a single dimension
{
npy_intp shape[1] = { R };
pyArray = (PyArrayObject*) PyArray_SimpleNew(1, shape,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment