numpy / numpy/numpy

Create a gufunc form of argmin and argmax

Open
#12,516 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

01 - Enhancement 23 - Wish List component: numpy.dtype
Dominant language
Python
Stars
32.8k
Forks
12.8k
Avg merge
1d 7h
Merged PRs (30d)
197

Description

Part of #12514

In the long term, we want np.argmin to become that gufunc - but in the short term, we can just wrap it to deal with any interface quirks.

In particular, argmin allows multiple axes to be specified.

Blocked by #12518, needed to give access to ->f->compare in the inner loop

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the parent issue #12514 and the blocking issue #12518, then inspect the existing np.argmin and np.argmax implementations and gufunc conventions. The work is done when gufunc forms exist, handle the noted interface differences such as multiple axes, and the dependency provides access to ->f->compare.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.