[Numpy-discussion] setmember1d memory leak?

Robert Cimrman cimrman3 at ntc.zcu.cz
Tue Jan 23 05:09:04 EST 2007


Robert Kern wrote:
> Jan Strube wrote:
>> I would also like to see a method that doesn't have the unique members
>> requirement.
>> If setmember1d cannot be modified to do that, is there another method
>> that doesn't have these restrictions. Or could one be added?
> 
> If you can write one that's reasonably efficient, yes.

Or you could just call unique1d prior to your call to setmember1d - it
was meant to be used that way... you would not loose much speed that
way, IMHO.

r.






More information about the NumPy-Discussion mailing list