Support python-style negative indices in axes arguments
Compare changes
+ 11
− 6
@@ -63,13 +63,18 @@ shape_t makeaxes(const py::array &in, py::object axes)
@@ -63,13 +63,18 @@ shape_t makeaxes(const py::array &in, py::object axes)
In python, indexing as array[-k]
is the same as array[N-k]
. This extends that behavior to the axes
argument.