Skip to content
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

BUG: Ensure too many advanced indices raises an exception #18257

Merged
merged 2 commits into from
Jan 29, 2021

Commits on Jan 29, 2021

  1. BUG: Ensure too many advanced indices raises an exception

    The number of indices is limited to 2*MAXDIMS currently to allow
    mixing integer indices, e.g. with new indices `np.newaxis` (one
    removes output dimensions, the other adds new ones).
    This means that more than MAXDIMS advanced indices can be passed
    on to the advanced indexing machinery (`MapIterNew`), which did
    not check for this possibility.
    
    Closes numpygh-18145
    seberg authored and charris committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    436aec5 View commit details
    Browse the repository at this point in the history
  2. Update numpy/core/src/multiarray/mapping.c

    seberg authored and charris committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    f3070c5 View commit details
    Browse the repository at this point in the history