Skip to content

Conversation

@drculhane
Copy link
Contributor

@drculhane drculhane commented May 15, 2025

Closes #4407 and #4421

Numpy functions allow for negative numbers in the axis argument (e.g. -1 means the last axis, -2 the next-to-last, etc). Arkouda has such functionality server-side, but it's not used consistently. This PR is part of a series that aims to correct that.

Update: also adds negative axis coverage for argmin and argmax. Renames the new chapel function validateNegativeAxis to validateNegativeAxes, since "Axes" already existed, and this is just a case of overloading it.

@ajpotts
Copy link
Contributor

ajpotts commented May 15, 2025

Would you please add a description the PR?

Copy link
Contributor

@1RyanK 1RyanK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@drculhane drculhane force-pushed the Closes-4407 branch 4 times, most recently from e3219e8 to 24792f7 Compare May 19, 2025 13:18
@drculhane drculhane changed the title Adds negative axis coverage to ak.repeat, and Closes 4407 Adds negative axis coverage to ak.repeat, ak.argmin, ak.argmax, Closes 4407 and 4421 May 19, 2025
Copy link
Contributor

@ajpotts ajpotts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of this!

@ajpotts ajpotts enabled auto-merge May 21, 2025 18:15
@ajpotts ajpotts added this pull request to the merge queue May 22, 2025
Merged via the queue into Bears-R-Us:master with commit cc5df7d May 22, 2025
27 checks passed
@drculhane drculhane deleted the Closes-4407 branch June 3, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add negative axis handling to repeat

3 participants