8000 Split `unique` into separate functions by kgryte · Pull Request #275 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Split unique into separate functions #275

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

Merged
merged 7 commits into from
Oct 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix shape guidance
  • Loading branch information
kgryte committed Sep 27, 2021
commit c902f09067654b2554dbd31721f63e038841a6e3
2 changes: 1 addition & 1 deletion spec/API_specification/set_functions.md
8401
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Returns the unique elements of an input array `x`.
- first element must have the field name `values` and must be an array containing the unique elements of `x`.
- second element must have the field name `indices` and must be an array containing the indices (first occurrences) of `x` that result in `values`. The array must have the same shape as `values` and must have the default integer data type.
- third element must have the field name `inverse_indices` and must be an array containing the indices of `values` that reconstruct `x`. The array must have the same shape as `x` and must have the default integer data type.
- fourth element must have the field name `counts` and must be an array containing the number of times each unique element occurs in `x`. The returned array must have same shape as `x` and must have the default integer data type.
- fourth element must have the field name `counts` and must be an array containing the number of times each unique element occurs in `x`. The returned array must have same shape as `values` and must have the default integer data type.

(function-unique-inverse)=
### unique_inverse(x, /)
Expand Down
0