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

core: fix constructor of Eigen::DSizes

parent dc565efe
No related branches found
No related tags found
No related merge requests found
Pipeline #25953 failed
......@@ -210,7 +210,7 @@ struct numpy_map_impl_tensor {
EIGENPY_UNUSED_VARIABLE(swap_dimensions);
assert(PyArray_NDIM(pyArray) == NumIndices || NumIndices == Eigen::Dynamic);
Eigen::DSizes<Index, NumIndices> dimensions(PyArray_NDIM(pyArray));
Eigen::DSizes<Index, NumIndices> dimensions;
for (int k = 0; k < PyArray_NDIM(pyArray); ++k)
dimensions[k] = PyArray_DIMS(pyArray)[k];
......
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