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 0deef65 commit 683b77cCopy full SHA for 683b77c
include/eigenpy/eigen-allocator.hpp
@@ -124,6 +124,9 @@ struct EigenAllocator {
124
PyArrayObject *pyArray,
125
boost::python::converter::rvalue_from_python_storage<MatType> *storage) {
126
void *raw_ptr = storage->storage.bytes;
127
+ assert(is_aligned(raw_ptr, EIGENPY_DEFAULT_ALIGN_BYTES) &&
128
+ "The pointer is not aligned.");
129
+
130
Type *mat_ptr = details::init_matrix_or_array<Type>::run(pyArray, raw_ptr);
131
Type &mat = *mat_ptr;
132
0 commit comments