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

ENH: add sum() up to 3D #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tylerjereddy
Copy link
Contributor

@tylerjereddy tylerjereddy commented Jul 19, 2022

  • add 1D-3D support for the sum() reduction ufunc;
    this is likely the first example of a reduction ufunc
    I've added so far

* satisfying the mypy type hint analysis caused some
tests to fail, so I'm suppressing the type hint checks
for the ufuncs module for now
(done in a previously-merged PR now)

  • most comments/questions are in the source

@tylerjereddy tylerjereddy added the enhancement New feature or request label Jul 19, 2022
tylerjereddy added a commit to tylerjereddy/pykokkos that referenced this pull request Jul 19, 2022
* add 1D-3D support for the `prod()` reduction ufunc;
largely copies the similar infrastructure for `sum()`
from kokkosgh-52 and has the same caveats I think
* add 1D-3D support for the `sum()` reduction ufunc;
this is likely the first example of a reduction ufunc
I've added so far

* most comments/questions are in the source
@tylerjereddy
Copy link
Contributor Author

@NaderAlAwar I think I've dealt with the merge conflicts here and CI is passing, so maybe this is the next one to do code review for.

@tylerjereddy tylerjereddy changed the title ENH: add sum ufunc up to 3D ENH: add sum() up to 3D Aug 25, 2022
@tylerjereddy
Copy link
Contributor Author

tylerjereddy commented Aug 25, 2022

formally, I don't think sum() is considered a ufunc, perhaps b/c a reduction op. So I edited title accordingly

@NaderAlAwar NaderAlAwar changed the base branch from develop to main May 24, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant