[Numpy-discussion] indexing, searchsorting, ...

Jan Strube curiousjan@gmail....
Tue Jan 26 10:22:24 CST 2010


Dear Josef and Keith,

thank you both for your suggestions. I think intersect would be what I want
for it makes clean code.
I have, however, spotted the problem:
I was mistakenly under the assumption that random_integers returns unique
entries, which is of course not guaranteed, so that the random sample
contained duplicate entries.
That's why the numpy methods returned results inconsistent with python 'in'.
I'll have to be a bit smarter in the generation of the random sample. Good
thing I try to do things in two different ways. (Sometimes it is, anyway...)
Thanks again for your quick help.
Cheers,
    Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100126/4389a79a/attachment-0001.html 


More information about the NumPy-Discussion mailing list