Evaluate the union of two arrays. More...
Functions | |
AFAPI array | setUnion (const array &first, const array &second, const bool is_unique=false) |
C++ Interface to evaluate the union of two arrays. More... | |
AFAPI af_err | af_set_union (af_array *out, const af_array first, const af_array second, const bool is_unique) |
C Interface to evaluate the union of two arrays. More... | |
AFAPI array | setunion (const array &first, const array &second, const bool is_unique=false) |
Evaluate the union of two arrays.
The inputs must be one-dimensional arrays. Batching is not currently supported.
An example:
The function can be sped up if the input is sorted in increasing order and its values are unique.
AFAPI af_err af_set_union | ( | af_array * | out, |
const af_array | first, | ||
const af_array | second, | ||
const bool | is_unique | ||
) |
C Interface to evaluate the union of two arrays.
[out] | out | union, values in increasing order |
[in] | first | input array |
[in] | second | input array |
[in] | is_unique | if true, skip calling unique internally |
C++ Interface to evaluate the union of two arrays.
[in] | first | input array |
[in] | second | input array |
[in] | is_unique | if true, skip calling setUnique internally |
C++ Interface to evaluate the union of two arrays.
[in] | first | input array |
[in] | second | input array |
[in] | is_unique | if true, skip calling setUnique internally |