Re: [Numpy-discussion] Numpy array in iterable

2009-03-05 Thread Kim Hansen
>2009/3/5 Robert Cimrman : > > Great! It's a nice use case for return_inverse=True in unique1d(). > > I have fixed the formatting, but cannot remove the previous comment. > > r. ;-) Thank you for fixing the formatting, --Kim ___ Numpy-discussion mailin

Re: [Numpy-discussion] Numpy array in iterable

2009-03-05 Thread Robert Cimrman
Kim Hansen wrote: >> 2009/3/5 Robert Cimrman : >> I have added your implementation to >> http://projects.scipy.org/numpy/ticket/1036 - is it ok with you to add >> the function eventually into arraysetops.py, under the numpy (BSD) license? >> >> cheers, >> r. >> > Yes, that would be fine with me. In

Re: [Numpy-discussion] Numpy array in iterable

2009-03-05 Thread Kim Hansen
>2009/3/5 Robert Cimrman : > I have added your implementation to > http://projects.scipy.org/numpy/ticket/1036 - is it ok with you to add > the function eventually into arraysetops.py, under the numpy (BSD) license? > > cheers, > r. > Yes, that would be fine with me. In fact that would be an honor!

Re: [Numpy-discussion] Numpy array in iterable

2009-03-05 Thread Robert Cimrman
Kim Hansen wrote: > Hi again > > It turned out not to be quite good enough as is, as it requires unique > values for both arrays. Whereas this is often true for the second > argument, it is never true for the first argument in my use case, and > I struggled with that for some time until i realized

Re: [Numpy-discussion] Numpy array in iterable

2009-03-05 Thread Kim Hansen
Hi again It turned out not to be quite good enough as is, as it requires unique values for both arrays. Whereas this is often true for the second argument, it is never true for the first argument in my use case, and I struggled with that for some time until i realized I could use unique1d with the

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread josef . pktd
On Wed, Feb 25, 2009 at 1:37 PM, Kim Hansen wrote: >> I just looked under "set routines" in the help file. I really like the >> speed of the windows help file. > > Is there a Numpy windows help file? > > Cool! > > But where is it? I can't find it in  my numpy 1.2.1 installation?!? > > I like the P

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread Kim Hansen
> I just looked under "set routines" in the help file. I really like the > speed of the windows help file. Is there a Numpy windows help file? Cool! But where is it? I can't find it in my numpy 1.2.1 installation?!? I like the Python 2.5 Windows help file too and I agree it is a fast and effic

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread josef . pktd
On Wed, Feb 25, 2009 at 9:02 AM, Kim Hansen wrote: > Yes, this is exactly what I was after, only the function name did not > ring a bell (I still cannot associate it with something meaningful for > my use case). Thanks! > > -- Slaunger > I just looked under "set routines" in the help file. I real

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread Kim Hansen
Yes, this is exactly what I was after, only the function name did not ring a bell (I still cannot associate it with something meaningful for my use case). Thanks! -- Slaunger 2009/2/25 : > On Wed, Feb 25, 2009 at 7:28 AM, Kim Hansen wrote: >> Hi Numpy discussions >> Quite often I find myself wa

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread josef . pktd
On Wed, Feb 25, 2009 at 7:28 AM, Kim Hansen wrote: > Hi Numpy discussions > Quite often I find myself wanting to generate a boolean mask for fancy > slicing of some array, where the mask itself is generated by checking > if its value has one of several relevant values (corresponding to > states) >

[Numpy-discussion] Numpy array in iterable

2009-02-25 Thread Kim Hansen
Hi Numpy discussions Quite often I find myself wanting to generate a boolean mask for fancy slicing of some array, where the mask itself is generated by checking if its value has one of several relevant values (corresponding to states) So at the the element level thsi corresponds to checking if ele