8000 ENH: ndrange, like range, but multidimensional by hmaarrfk · Pull Request #12094 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: ndrange, like range, but multidimensional #12094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/release/upcoming_changes/12094.new_function.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
``ndrange`` a multi-dimensional range-like object
-------------------------------------------------
``ndrange`` behaves much like the Python 3 ``range`` object and allows
multi-dimensional slicing, iteration, reversal and efficient membership lookup.
``ndrange`` now supersedes the ``ndind 8000 ex`` object for generating multi-index
iterators. ``ndindex`` will continue to be maintained for backward
compatibility.
1 change: 1 addition & 0 deletions doc/source/reference/routines.indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Iterating over arrays
nditer
ndenumerate
ndindex
ndrange
nested_iters
flatiter
iterable
6 changes: 3 additions & 3 deletions numpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@
savez_compressed, unpackbits, fromregex
)
from .lib._index_tricks_impl import (
diag_indices_from, diag_indices, fill_diagonal, ndindex, ndenumerate,
ix_, c_, r_, s_, ogrid, mgrid, unravel_index, ravel_multi_index,
index_exp
diag_indices_from, diag_indices, fill_diagonal, ndindex, ndrange,
ndenumerate, ix_, c_, r_, s_, ogrid, mgrid, unravel_index,
ravel_multi_index, index_exp
)

from . import matrixlib as _mat
Expand Down
Loading
0