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

numpy: fix constness bug

parent b95cb9bc
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,6 @@ namespace eigenpy
NPY_ARRAY_MEMORY_CONTIGUOUS | NPY_ARRAY_ALIGNED,
NULL);
return pyArray;
}
};
......@@ -63,11 +62,10 @@ namespace eigenpy
PyArrayObject * pyArray = (PyArrayObject*) PyArray_New(&PyArray_Type, nd, shape,
NumpyEquivalentType<Scalar>::type_code, NULL,
mat.data(), 0,
const_cast<SimilarMatrixType &>(mat.derived()).data(), 0,
NPY_ARRAY_MEMORY_CONTIGUOUS_RO | NPY_ARRAY_ALIGNED,
NULL);
return pyArray;
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment