Re: [Numpy-discussion] return type from ufuncs

2014-11-27 Thread Marek Wojciechowski
Dnia czwartek, 20 listopada 2014 18:47:41 Marek Wojciechowski pisze: Hi! I wrote a simple subclass of np.ndarray and now i do call np.sum() on it. I expected that the result will be a python float (or int) just like when summing up regular arrays. Instead i obtain the (scalar) view of my

Re: [Numpy-discussion] Setting up a newcomers label on the issue tracker ?

2014-11-27 Thread Todd
KDE calls themjunior jobs. On Nov 27, 2014 2:29 AM, Benjamin Root ben.r...@ou.edu wrote: FWIW, matplotlib calls it low hanging fruit. I think it is a better name than newcomers. On Wed, Nov 26, 2014 at 1:19 PM, Aldcroft, Thomas aldcr...@head.cfa.harvard.edu wrote: On Wed, Nov 26, 2014

[Numpy-discussion] Finding values in an array

2014-11-27 Thread Alexander Belopolsky
I probably miss something very basic, but how given two arrays a and b, can I find positions in a where elements of b are located? If a were sorted, I could use searchsorted, but I don't want to get valid positions for elements that are not in a. In my case, a has unique elements, but in the

Re: [Numpy-discussion] Finding values in an array

2014-11-27 Thread Stephan Hoyer
On Thu, Nov 27, 2014 at 10:15 PM, Alexander Belopolsky ndar...@mac.com wrote: I probably miss something very basic, but how given two arrays a and b, can I find positions in a where elements of b are located? If a were sorted, I could use searchsorted, but I don't want to get valid positions