Re: [Numpy-discussion] intersect1d and setmember1d

2009-03-04 Thread Robert Cimrman
Robert Cimrman wrote: > Neil Crighton wrote: >> Robert Kern gmail.com> writes: >> >>> Do you mind if we just add you to the THANKS.txt file, and consider >>> you as a "NumPy Developer" per the LICENSE.txt as having released that >>> code under the numpy license? If we're dotting our i's and crossi

Re: [Numpy-discussion] intersect1d and setmember1d

2009-03-04 Thread Robert Cimrman
Neil Crighton wrote: > Robert Kern gmail.com> writes: > >> Do you mind if we just add you to the THANKS.txt file, and consider >> you as a "NumPy Developer" per the LICENSE.txt as having released that >> code under the numpy license? If we're dotting our i's and crossing >> our t's legally, that'

Re: [Numpy-discussion] intersect1d and setmember1d

2009-03-03 Thread Neil Crighton
Robert Kern gmail.com> writes: > Do you mind if we just add you to the THANKS.txt file, and consider > you as a "NumPy Developer" per the LICENSE.txt as having released that > code under the numpy license? If we're dotting our i's and crossing > our t's legally, that's a bit more straightforward

Re: [Numpy-discussion] intersect1d and setmember1d

2009-03-02 Thread Robert Kern
On Mon, Mar 2, 2009 at 03:39, Neil Crighton wrote: > Robert Cimrman ntc.zcu.cz> writes: > >> Hi Neil! >> >> I would like to add your function to arraysetops.py - is it ok? Just the >> name would be changed to setmember1d_nu, to follow the naming in the >> module (like intersect1d_nu). >> >> Thank

Re: [Numpy-discussion] intersect1d and setmember1d

2009-03-02 Thread Neil Crighton
Robert Cimrman ntc.zcu.cz> writes: > Hi Neil! > > I would like to add your function to arraysetops.py - is it ok? Just the > name would be changed to setmember1d_nu, to follow the naming in the > module (like intersect1d_nu). > > Thank you, > r. > That's fine! There's no licence attached,

Re: [Numpy-discussion] intersect1d and setmember1d

2009-03-02 Thread Robert Cimrman
Neil wrote: > mudit sharma yahoo.com> writes: > >> intersect1d and setmember1d doesn't give expected results in case there are > duplicate values in either >> array becuase it works by sorting data and substracting previous value. Is > there an alternative in numpy >> to get indices of intersecte

Re: [Numpy-discussion] intersect1d and setmember1d

2009-02-28 Thread Neil
mudit sharma yahoo.com> writes: > intersect1d and setmember1d doesn't give expected results in case there are duplicate values in either > array becuase it works by sorting data and substracting previous value. Is there an alternative in numpy > to get indices of intersected values. > > In [31]:

Re: [Numpy-discussion] intersect1d and setmember1d

2009-02-27 Thread Robert Cimrman
Zachary Pincus wrote: > Hi, > >> intersect1d and setmember1d doesn't give expected results in case >> there are duplicate values in either array becuase it works by >> sorting data and substracting previous value. Is there an >> alternative in numpy to get indices of intersected values. > > Fr

Re: [Numpy-discussion] intersect1d and setmember1d

2009-02-26 Thread Zachary Pincus
Hi, > intersect1d and setmember1d doesn't give expected results in case > there are duplicate values in either array becuase it works by > sorting data and substracting previous value. Is there an > alternative in numpy to get indices of intersected values. From the docstring for setmember

[Numpy-discussion] intersect1d and setmember1d

2009-02-26 Thread mudit sharma
intersect1d and setmember1d doesn't give expected results in case there are duplicate values in either array becuase it works by sorting data and substracting previous value. Is there an alternative in numpy to get indices of intersected values. In [31]: p nonzero(setmember1d(v1.Id, v2.Id))[0]