[Numpy-discussion] unique1d returning indices

2008-08-06 Thread Robert Cimrman
Hi, due to popular demand, I have updated unique1d() to optionally return both kinds of indices: In [3]: b, i, j = nm.unique1d( a, return_index=True, return_inverse=True ) In [4]: a Out[4]: array([1, 1, 8, 3, 3, 5, 4]) In [6]: b Out[6]: array([1, 3, 4, 5, 8]) In [7]: a[i] Out[7]: array([1,

Re: [Numpy-discussion] unique1d returning indices

2008-08-08 Thread Stéfan van der Walt
Hi Robert 2008/8/6 Robert Cimrman <[EMAIL PROTECTED]>: > Note also that the order of outputs has changed (previously unique1d() > returned (i, b) for return_index=True). Does this not constitute an API change? Stéfan ___ Numpy-discussion mailing list N

Re: [Numpy-discussion] unique1d returning indices

2008-08-11 Thread Robert Cimrman
Hi Stéfan, Stéfan van der Walt wrote: > Hi Robert > > 2008/8/6 Robert Cimrman <[EMAIL PROTECTED]>: >> Note also that the order of outputs has changed (previously unique1d() >> returned (i, b) for return_index=True). > > Does this not constitute an API change? It does. Are there many users of un

Re: [Numpy-discussion] unique1d returning indices

2008-08-11 Thread Stéfan van der Walt
2008/8/11 Robert Cimrman <[EMAIL PROTECTED]>: >>> Note also that the order of outputs has changed (previously unique1d() >>> returned (i, b) for return_index=True). >> >> Does this not constitute an API change? > > It does. Are there many users of unique1d( a, return_index=True ) out there? > > The

Re: [Numpy-discussion] unique1d returning indices

2008-08-11 Thread Robert Cimrman
Stéfan van der Walt wrote: > 2008/8/11 Robert Cimrman <[EMAIL PROTECTED]>: Note also that the order of outputs has changed (previously unique1d() returned (i, b) for return_index=True). >>> Does this not constitute an API change? >> It does. Are there many users of unique1d( a, return_ind

Re: [Numpy-discussion] unique1d returning indices

2008-08-13 Thread Robert Cimrman
Robert Cimrman wrote: > Stéfan van der Walt wrote: >> 2008/8/11 Robert Cimrman <[EMAIL PROTECTED]>: > Note also that the order of outputs has changed (previously unique1d() > returned (i, b) for return_index=True). Does this not constitute an API change? >>> It does. Are there many use

Re: [Numpy-discussion] unique1d returning indices

2008-08-13 Thread Stéfan van der Walt
2008/8/13 Robert Cimrman <[EMAIL PROTECTED]>: >> Yeah, that's why I think not many people used the extra return anyway. >> I will do as you say unless somebody steps in. > > ... but not before August 25, as I am about to leave on holidays and > have not managed to do it yet. I do not want to mess w

Re: [Numpy-discussion] unique1d returning indices

2008-08-14 Thread Robert Cimrman
Stéfan van der Walt wrote: > 2008/8/13 Robert Cimrman <[EMAIL PROTECTED]>: >>> Yeah, that's why I think not many people used the extra return anyway. >>> I will do as you say unless somebody steps in. >> ... but not before August 25, as I am about to leave on holidays and >> have not managed to do