Skip to content

added extract and place via advanced indexing#536

Merged
mfoerste4 merged 15 commits intonv-legate:branch-22.10from
mfoerste4:extract
Aug 25, 2022
Merged

added extract and place via advanced indexing#536
mfoerste4 merged 15 commits intonv-legate:branch-22.10from
mfoerste4:extract

Conversation

@mfoerste4
Copy link
Contributor

@mfoerste4 mfoerste4 commented Aug 16, 2022

This PR requires #504 to be merged first!
It also requires a solution for #548 (already merged by @magnatelee )

@mfoerste4 mfoerste4 requested a review from ipdemes August 16, 2022 19:05
@ipdemes
Copy link
Contributor

ipdemes commented Aug 16, 2022

@mfoerste4 : please fix mypy errors

@ipdemes
Copy link
Contributor

ipdemes commented Aug 16, 2022

Also, you might want to move extract to a separate test.

@magnatelee
Copy link
Contributor

@mfoerste4 the numpy doc says np.place is the exact opposite of np.extract, so I guess you could write something similar to this code for np.extract. (maybe calling set_item instead of get_item would suffice.)

@mfoerste4 mfoerste4 changed the title added extract via nonzero and advanced indexing added extract and place via advanced indexing Aug 22, 2022
@mfoerste4
Copy link
Contributor Author

@ipdemes, I have added your suggestions. Please have a look at the latest changes.

@mfoerste4 mfoerste4 merged commit c0c3cc5 into nv-legate:branch-22.10 Aug 25, 2022
@mfoerste4 mfoerste4 deleted the extract branch August 25, 2022 15:10
jjwilke pushed a commit to jjwilke/cunumeric that referenced this pull request Sep 2, 2022
* added extract via nonzero and advanced indexing

* make mypy happy

* move tests to different suite

* add extract to doc

* skipping nonzero call in favor of astype(bool)

* added np.place API, extended test

* review suggestions place

* fix copy paste

* fix copy paste..

* deal with count_nontero non-int return value
manopapad pushed a commit that referenced this pull request Feb 18, 2025
* Pass github refname (PR Id) to upload in gh-legate-ci

* Pass ref_name and default_branch to legate-gh-ci setup.

* Use legate-gh-ci v1.23
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.

3 participants