[Numpy-discussion] Efficient removal of duplicates

Alan G Isaac aisaac@american....
Mon Dec 15 13:47:06 CST 2008


Hanno Klemm wrote:
> I the following problem: I have a relatively long array of points
> [(x0,y0), (x1,y1), ...]. Apparently, I have some duplicate entries, which
> prevents the Delaunay triangulation algorithm from completing its task.
> 
> Question, is there an efficent way, of getting rid of the duplicate
> entries?


`set`?

Alan Isaac

PS I think a couple such inquiries have perhaps suggested
that it would be nice if `unique` took an axis argument.


More information about the Numpy-discussion mailing list