issues
search
data-apis
/
array-api
RFC document, tooling and other content related to the array API standard
https://data-apis.github.io/array-api/latest/
MIT License
204
stars
42
forks
source link
docs: clarify shape of `values` and order of `counts` in `unique` APIs
#752
Closed
kgryte
closed
4 months ago
kgryte
commented
4 months ago
This PR
closes
https://github.com/data-apis/array-api/issues/588
.
is a follow-up from
https://github.com/data-apis/array-api/pull/700
.
explicitly states that
values
in all
unique_*
APIs must be a one-dimensional array. Previously, the output shape was implied, but not made explicit.
explicitly states that
indices
in
unique_all
must be the indices of a flattened
x
(ref:
https://github.com/data-apis/array-api/issues/588
).
adds a sentence requiring that the order of
counts
match the order of
values
.
This PR
values
in allunique_*
APIs must be a one-dimensional array. Previously, the output shape was implied, but not made explicit.indices
inunique_all
must be the indices of a flattenedx
(ref: https://github.com/data-apis/array-api/issues/588).counts
match the order ofvalues
.