Return the unique values in an array. More...
Return the unique values in an array.
The input must be a one-dimensional array. Batching is not currently supported.
An example, unsorted:
int h_set[6] = {3, 2, 3, 3, 2, 1};
A multi dimensional data container.
The function can be sped up if it is known that the inputs are sorted.
An example, sorted (ascending):
int h_set[6] = {1, 2, 2, 3, 3, 3};
const bool is_sorted = true;
af::arrayunique = setUnique(set, is_sorted);
The inputs can be sorted in ascending or descending order.
An example, sorted (descending):
int h_set[6] = {3, 3, 3, 2, 2, 1};
const bool is_sorted = true;
af::arrayunique = setUnique(set, is_sorted);
◆ af_set_unique()C Interface to return the unique values in an array.
C++ Interface to return the unique values in an array.
C++ Interface to return the unique values in an array.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4