8000 DOC: argmin, argmax, argort, etc. should link to `np.take_along_axis` in their documentation · Issue #6078 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
DOC: argmin, argmax, argort, etc. should link to np.take_along_axis in their documentation #6078
Closed
@mhvk

Description

@mhvk

In #6075, I wondered whether it might be possible to

to have some simple way to use the output of np.arg[min|max|sort] as a proper index (to avoid hackery as in https://github.com/astropy/astropy/blob/master/astropy/time/core.py#L896 -- if there is a simpler way already, let me know!)

and @jaimefrio suggested that it might be simpler to have

a make_me_an_indexing_tuple=False new keyword argument for the argxxx functions?

That indeed seems better, so I'm raising this as a separate issue. The code linked to above could be used as a template on how to generate the index tuple.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0