pybind11/include/pybind11
Matthew Woehlke 479e9a50f3
Fix arrays with zero-size dimensions (#4038)
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.
2022-06-29 11:37:16 -07:00
..
detail error_already_set::what() is now constructed lazily (#1895) 2022-06-02 16:17:38 -07:00
stl feature: support compilers that use std::experimental::filesystem (#3840) 2022-03-31 22:16:10 -07:00
attr.h Replace error printing code gated by NDEBUG with a new flag: PYBIND11_DETAILED_ERROR_MESSAGES (#3913) 2022-05-02 15:30:19 -04:00
buffer_info.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
cast.h Fix py::cast from pytype rvalue to pytype (#3949) 2022-05-16 13:51:01 -07:00
chrono.h chore: drop Python 3.5 (#3719) 2022-02-11 19:06:16 -05:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
eigen.h Fix arrays with zero-size dimensions (#4038) 2022-06-29 11:37:16 -07:00
embed.h fix: clear local internals after finalizing interpreter #2101 (#3744) 2022-02-20 08:00:29 -08:00
eval.h fix: missing move in eval.h (#3775) 2022-03-02 15:25:43 -05:00
functional.h remove useless ctor (#3989) 2022-06-03 15:18:06 -04:00
gil.h Replace error printing code gated by NDEBUG with a new flag: PYBIND11_DETAILED_ERROR_MESSAGES (#3913) 2022-05-02 15:30:19 -04:00
iostream.h chore: add err guard to capsule destructor and add a move to iostream (#3958) 2022-05-27 14:32:57 -04:00
numpy.h Add a missing std::move in numpy.h (#4005) 2022-06-14 14:20:26 -04:00
operators.h Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 2022-02-10 18:28:08 -08:00
options.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
pybind11.h error_already_set::what() is now constructed lazily (#1895) 2022-06-02 16:17:38 -07:00
pytypes.h error_already_set::what() is now constructed lazily (#1895) 2022-06-02 16:17:38 -07:00
stl_bind.h chore: Make stl_bind take slice as const_ref (#3852) 2022-04-11 13:53:30 -04:00
stl.h perf: Add object rvalue overload for accessors. Enables reference stealing (#3970) 2022-06-01 15:19:13 -04:00