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

Array API stats functions #2967

Merged

Conversation

jeremiah-corrado
Copy link
Contributor

@jeremiah-corrado jeremiah-corrado commented Feb 12, 2024

Implementation of the Array API Statistical Functions:

  • max
  • min
  • mean
  • std
  • var
  • prod (reduce)
  • sum (reduce)

And the two searching functions that were already implemented for 1D arrays:

  • argmin
  • argmax

Also adds multidimensional indexing assignments:

a[2, :, 8] = 3.14

@jeremiah-corrado jeremiah-corrado marked this pull request as ready for review February 13, 2024 23:28
Copy link
Contributor

@bmcdonald3 bmcdonald3 left a comment

Choose a reason for hiding this comment

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

Pretty much all my feedback is maybe replace those otherwise halt paths with return new MsgTuple(errorMsg, MsgType.ERROR);, rest looks good, nice work.

arkouda/pdarrayclass.py Show resolved Hide resolved
src/ReductionMsg.chpl Show resolved Hide resolved
@bmcdonald3 bmcdonald3 added this pull request to the merge queue Mar 4, 2024
Merged via the queue into Bears-R-Us:master with commit f395c22 Mar 4, 2024
13 checks passed
@jeremiah-corrado jeremiah-corrado deleted the array-api-stats-functions branch March 4, 2024 16:30
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.

2 participants