mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 17:13:53 +00:00
479e9a50f3
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. |
||
---|---|---|
.. | ||
pybind11 |