Skip to content

Conversation

@sbak5
Copy link
Contributor

@sbak5 sbak5 commented Jun 15, 2022

Implementation of np.atleast{1,2,3}d w/ a test.
Changed vstack and dstack to use the newly added routine, _atleast_nd

@magnatelee magnatelee requested a review from manopapad June 15, 2022 05:42
@magnatelee
Copy link
Contributor

@sbak5 please add type annotations to your functions. (see #387 and #413)

@bryevdv
Copy link
Contributor

bryevdv commented Jul 15, 2022

@magnatelee FYI I was just about to ask if these might be able to be added soon -- some test improvements I would like to consider making relies on atleast_1d (so currently works but spits out numerous warnings when I try)

@manopapad
Copy link
Contributor

Please add the new functions under squeeze in docs/cunumeric/source/api/manipulation.rst, so they show up in the documentation.

@sbak5 sbak5 merged commit 9a01628 into nv-legate:branch-22.07 Jul 22, 2022
jjwilke pushed a commit to jjwilke/cunumeric that referenced this pull request Jul 29, 2022
* Atleast_{1,2,3}d the first implementation

* Added a test for atleast_nd routines

* Applied atleast_nd routines to `vstack` and `hstack`

* Added description of atleast_nd routines

* Modified to do 'reshape' only once for each arr after collecting
the final shapes of arrays

* Changed the 'atleast_nd' routines to use type annotations
and modified 'test_atleast_nd.py' to use LEGATE_MAX_DIM

* Made a change with reference to comments on PR regarding description of functions

* Made the `view` arugment in `_atleast_nd` not to use `Optional`

* Fixed the bug w/ singleton arrays for `vstack` and `dstack` after `_atleast_nd` is applied
Added a test case for singleton arrays in `test_concatenate_stack`

* Minor change for the output format in `tests/integration/test_atleast_nd.py`

* Delete unnecessary codes regarding `view`
jjwilke pushed a commit to jjwilke/cunumeric that referenced this pull request Jul 29, 2022
* Atleast_{1,2,3}d the first implementation

* Added a test for atleast_nd routines

* Applied atleast_nd routines to `vstack` and `hstack`

* Added description of atleast_nd routines

* Modified to do 'reshape' only once for each arr after collecting
the final shapes of arrays

* Changed the 'atleast_nd' routines to use type annotations
and modified 'test_atleast_nd.py' to use LEGATE_MAX_DIM

* Made a change with reference to comments on PR regarding description of functions

* Made the `view` arugment in `_atleast_nd` not to use `Optional`

* Fixed the bug w/ singleton arrays for `vstack` and `dstack` after `_atleast_nd` is applied
Added a test case for singleton arrays in `test_concatenate_stack`

* Minor change for the output format in `tests/integration/test_atleast_nd.py`

* Delete unnecessary codes regarding `view`
manopapad pushed a commit that referenced this pull request Nov 17, 2024
* Fix install.py for legate src-layout
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.

4 participants