cupy.union1d#
- cupy.union1d(arr1, arr2)[source]#
Find the union of two arrays.
Returns the unique, sorted array of values that are in either of the two input arrays.
- Parameters:
arr1 (cupy.ndarray) – Input arrays. They are flattened if they are not already 1-D.
arr2 (cupy.ndarray) – Input arrays. They are flattened if they are not already 1-D.
- Returns:
union1d – Sorted union of the input arrays.
- Return type:
See also