cupy / cupy/cupy

Support new kwargs `initial` and `where` in reduction functions

Open
#6,935 4 comments 1 reaction 0 assignees View on GitHub
cat:feature contribution welcome prio:medium
Dominant language
Python
Stars
12.3k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
45

Description

### Description

It seems
- `numpy.min()`
- `numpy.amin()`
- `numpy.max()`
- `numpy.amax()`
- ...?

have added additional kwargs `initial` and `where`, but CuPy's counterparts do not. Would be nice to catch up, so opening this issue to track.

ps. I haven't checked if this is a duplicate issue.

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by comparing CuPy's reduction functions with numpy.min(), amin(), max(), and amax(), then check the corresponding reduction entry points for existing keyword handling. Confirm the intended NumPy semantics for initial and where, and verify that all affected counterparts accept them consistently. Done means the supported reductions match NumPy behavior and have coverage for both new keywords.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.