mirror of https://github.com/pybind/pybind11
Browse Source
This PR adds a new py::ellipsis() method which can be used in conjunction with NumPy's generalized slicing support. For instance, the following is now valid (where "a" is a NumPy array): py::array b = a[py::make_tuple(0, py::ellipsis(), 0)];pull/1496/head
4 changed files with 43 additions and 0 deletions
Loading…
Reference in new issue