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

Add xp.trapz #4127

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

ShreyasKhandekar
Copy link
Contributor

@ShreyasKhandekar ShreyasKhandekar commented Feb 28, 2025

Resolves: #4129

Add trapz (or trapezoid) function in Arkouda using the functionality from the array API.

In the future the entirity of this function may be implemented purely in Chapel.

See https://numpy.org/doc/1.26/reference/generated/numpy.trapz.html#numpy.trapz for reference.

Technically, trapz is deprecated in numpy 2.0 onwards, but Arkouda still uses numpy 1.26. I've added both overloads.

Also added tests.

Shreyas Khandekar added 6 commits March 3, 2025 13:06
Add trapz (or trapezoid) function in Arkouda using the functionality
from the array API.
In the future the entirity of this function may be implemented purely in
Chapel.

See https://numpy.org/doc/1.26/reference/generated/numpy.trapz.html#numpy.trapz

Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Same as `trapz`

Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
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 xp.trapz
3 participants