[Numpy-discussion] member1d and unique elements
Greg Novak
novak@ucolick....
Tue Aug 5 12:46:32 CDT 2008
Argh. I could swear that yesterday I typed test cases just like the
one you provide, and it behaved correctly. Nevertheless, it clearly
fails in spite of my memory, so attached is a version which I believe
gives the correct behavior.
Greg
On Tue, Aug 5, 2008 at 9:00 AM, Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
> I do not have much time to investigate it in detail right now, but it
> does not work for repeated entries in ar1:
>
> In [14]: nm.setmember1d( [1,2,3,2], [1, 3] )
> Out[14]: array([ True, True, True, False], dtype=bool)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setmember.py
Type: text/x-python
Size: 2458 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080805/3f90cef7/attachment.py
More information about the Numpy-discussion
mailing list