mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +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. |
||
---|---|---|
.. | ||
detail | ||
stl | ||
attr.h | ||
buffer_info.h | ||
cast.h | ||
chrono.h | ||
common.h | ||
complex.h | ||
eigen.h | ||
embed.h | ||
eval.h | ||
functional.h | ||
gil.h | ||
iostream.h | ||
numpy.h | ||
operators.h | ||
options.h | ||
pybind11.h | ||
pytypes.h | ||
stl_bind.h | ||
stl.h |