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 15b701a commit 7d28bd5Copy full SHA for 7d28bd5
include/eigenpy/eigen-allocator.hpp
@@ -245,7 +245,8 @@ inline bool is_arr_layout_compatible_with_mat_type(PyArrayObject *pyArray) {
245
bool is_array_F_cont = PyArray_IS_F_CONTIGUOUS(pyArray);
246
return (MatType::IsRowMajor && is_array_C_cont) ||
247
(!MatType::IsRowMajor && is_array_F_cont) ||
248
- MatType::IsVectorAtCompileTime;
+ (MatType::IsVectorAtCompileTime &&
249
+ (is_array_C_cont || is_array_F_cont));
250
}
251
252
template <typename MatType, int Options, typename Stride>
0 commit comments