Hello, After spending a great deal of time researching how to do something as trivial as an equality test for arrrays of unequal lengths, I've given up to defer to your wisdom. a = array([19289 19291 19299 ..., 21966 21978 21990]) b = array([ 0 1 2 ..., 95956 95717 95768]) Evidently, where(equal... has no merit, as well as all the other expressions I've tried. Thank you for your help :) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
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
participants (2)
-
Alan G Isaac
-
kevin lester