[Numpy-discussion] Equality Testing

Alan G Isaac aisaac at american.edu
Fri Nov 26 05:41:39 CST 2004


On Fri, 26 Nov 2004, kevin lester apparently wrote:
> equality test for arrrays of unequal lengths ...
> a = array([19289 19291 19299 ..., 21966 21978 21990])
> b = array([    0     1     2 ..., 95956 95717 95768])

What does the result you want look like?
If you just want the set of shared elements,
try the set module.

hth,
Alan Isaac






More information about the Numpy-discussion mailing list