diff --git a/spec/API_specification/set_functions.md b/spec/API_specification/set_functions.md index 679d7157c..73d8338cc 100644 --- a/spec/API_specification/set_functions.md +++ b/spec/API_specification/set_functions.md @@ -13,7 +13,7 @@ A conforming implementation of the array API standard must provide and support t (function-unique)= -### unique(x, /, *, return_counts=False, return_index=False, return_inverse=False, sorted=True) +### unique(x, /, *, return_counts=False, return_index=False, return_inverse=False) Returns the unique elements of an input array `x`. @@ -35,12 +35,6 @@ Returns the unique elements of an input array `x`. - If `True`, the function must also return the indices of the unique array that reconstruct `x`. Default: `False`. -- **sorted**: _bool_ - - - If `True`, the function must sort the unique elements in ascending order before returning as output. If `False`, the function must sort the unique elements in the same order that they occur in `x`. Default: `False`. - - _TODO: sort order needs discussion. See [gh-40](https://github.com/data-apis/array-api/issues/40)_ - #### Returns - **out**: _Union\[ <array>, Tuple\[ <array>, ... ] ]_ @@ -51,6 +45,10 @@ Returns the unique elements of an input array `x`. - an array containing the set of unique elements in `x`. The returned array must have the same data type as `x`. + ```{note} + The order of elements is not specified, and may vary between implementations. + ``` + - **indices**: _<array>_ - an array containing the indices (first occurrences) of `x` that result in `unique`. The returned array must have the default array index data type.