We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d4a49 commit 9c4d4caCopy full SHA for 9c4d4ca
include/eigenpy/details.hpp
@@ -461,7 +461,7 @@ namespace eigenpy
461
462
PyArrayObject* pyArray;
463
// Allocate Python memory
464
- if(C == 1 && NumpyType::getType() == ARRAY_TYPE) // Handle array with a single dimension
+ if(C == 1 && NumpyType::getType() == ARRAY_TYPE && MatType::IsVectorAtCompileTime) // Handle array with a single dimension
465
{
466
npy_intp shape[1] = { R };
467
pyArray = (PyArrayObject*) PyArray_SimpleNew(1, shape,
0 commit comments