test_eigen.py
27.8 KB
-
Fix arrays with zero-size dimensions (#4038) · 479e9a50
When converting an array to an Eigen matrix, ignore the strides if any dimension size is 0. If the array is empty, the strides aren't relevant, and especially numpy ≥ 1.23 explicitly sets the strides to 0 in this case. (See numpy commit dd5ab7b11520.) Update tests to verify that this works, and continues to work.
Matthew Woehlke committed