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

3807 update trig and hyp functions #3809

Closed

Conversation

drculhane
Copy link
Contributor

Closes #3807, updating of trig and hyperbolic functions to new interface.

Only two files are changed:

arkouda/numpy/_numeric.py has two new functions at the top (where_helper and datatype_check), but the primary change is inside _trig_helper, which now calls the trig and hyp functions directly, instead of going through "efunc".

src/EfuncMsg.chpl has new procs for all of these functions, written with the new interface. All of the trig and hyp functions have been removed from the long Select-When clauses that use the old interface.

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.

This is awesome. Thanks for taking care of this.

arkouda/numpy/_numeric.py Outdated Show resolved Hide resolved
arkouda/numpy/_numeric.py Outdated Show resolved Hide resolved
arkouda/numpy/_numeric.py Outdated Show resolved Hide resolved
src/EfuncMsg.chpl Outdated Show resolved Hide resolved
src/EfuncMsg.chpl Outdated Show resolved Hide resolved
drculhane and others added 5 commits October 15, 2024 06:54
)

When running with multidim, multiloc, and runtime checks, I was having the server crash with this error:
```
$CHPL_HOME/modules/internal/ChapelRange.chpl:2772: error: halt reached - With a positive count, the range must have a first index.
```

It ended up being a fairly easy fix once I ran it down... which took a second because this was a new error to me. This PR fixes Bears-R-Us#3851

Co-authored-by: Tess Hayes <[email protected]>
…Us#3841)

* add primitive where-clause evaluation (for instantiateAndRegister) to register_commands.py

Signed-off-by: Jeremiah Corrado <[email protected]>

* remove uninstantiated overloads from commands annotated with instantiateAndRegister

Signed-off-by: Jeremiah Corrado <[email protected]>

* remove match statements from register_commands.py

Signed-off-by: Jeremiah Corrado <[email protected]>

* add error message for 'pad' w/ bigint

Signed-off-by: Jeremiah Corrado <[email protected]>

* add preliminary support for where-clause evaluation in 'registerCommand'

Signed-off-by: Jeremiah Corrado <[email protected]>

* fix misinterpretation of explicit type widths (e.g., uint(64)) in where clauses

Signed-off-by: Jeremiah Corrado <[email protected]>

* fix error message

Signed-off-by: Jeremiah Corrado <[email protected]>

* fix error message

Signed-off-by: Jeremiah Corrado <[email protected]>

* refactor 'sum' to not rely on where-clauses for dispatching

Signed-off-by: Jeremiah Corrado <[email protected]>

* refactor prod, max, and min to take their 'axis' argument as a list

Signed-off-by: Jeremiah Corrado <[email protected]>

* fix mypy errors and multi-dim build failure

Signed-off-by: Jeremiah Corrado <[email protected]>

* create list-specific implementations of aryUtil helper procedures used in ReductionMsg. Fix 'axis' argument in 'ak.sum'

Signed-off-by: Jeremiah Corrado <[email protected]>

* fix return type change to reduction procedures

Signed-off-by: Jeremiah Corrado <[email protected]>

* fix reducedShape helper for lists

Signed-off-by: Jeremiah Corrado <[email protected]>

---------

Signed-off-by: Jeremiah Corrado <[email protected]>
@drculhane
Copy link
Contributor Author

Superseded by 3863.

@drculhane drculhane closed this Oct 23, 2024
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.

Update trigonometric and hyperbolic functions to new interface
5 participants