Given a collection X of n-tuples stored in device memory as the array, for example (x1 , x2, x3) , (x4, x5, x6) … where each braces identifies an individual tuple in a collection of 3-tuples. I’d like to perform the two following operations on the collection:
- Remove repeated tuples from the collection X
- Append unique tuples to X from another collection Y := (y1, y2, y3) , (y4 , y5, y6) …
I’m aware that thrust has merge, remove and unique functions but I’m also aware that these algorithms are designed for primitive types. Are there known workarounds?