-
Notifications
You must be signed in to change notification settings - Fork 70
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
Adding support for take_along_axis and put_along_axis #436
Conversation
cunumeric/module.py
Outdated
axis : int | ||
The axis to take 1d slices along. If axis is None, the destination | ||
array is treated as if a flattened 1d view had been created of it. | ||
`axis=None` case is currenlty supported only for 1D input arrays. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: "currently"
cunumeric/module.py
Outdated
a.shape, computed_axis, indices | ||
) | ||
a[ind] = values | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for a return statement here
cunumeric/module.py
Outdated
@@ -2545,7 +2545,8 @@ def take_along_axis(a: ndarray, indices: ndarray, axis: int) -> ndarray: | |||
Returns | |||
------- | |||
out: ndarray (Ni..., J, Nk...) | |||
The indexed result. | |||
The indexed result. It is going to be a vew to `arr` for most cases, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: "view"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some typos, otherwise looks good
adding support for take_along_axis and put_along_axis
No description provided.