Re: Set operations in Numeric

2006-10-23 Thread George Sakkis
Robert Kern wrote: > George Sakkis wrote: > > Is there a way to handle numeric (or numarray or numpy) arrays as sets > > and compute efficiently their intersection, union, etc. ? I hope there > > is a faster way than s = array(set(A) & set(B)). Can this be done with > > masked arrays maybe ? I've n

Re: Set operations in Numeric

2006-10-23 Thread Robert Kern
George Sakkis wrote: > Is there a way to handle numeric (or numarray or numpy) arrays as sets > and compute efficiently their intersection, union, etc. ? I hope there > is a faster way than s = array(set(A) & set(B)). Can this be done with > masked arrays maybe ? I've never used them though and bro

Set operations in Numeric

2006-10-23 Thread George Sakkis
Is there a way to handle numeric (or numarray or numpy) arrays as sets and compute efficiently their intersection, union, etc. ? I hope there is a faster way than s = array(set(A) & set(B)). Can this be done with masked arrays maybe ? I've never used them though and browsing through the docs didn't