Re: [Numpy-discussion] NumPy/SciPy participation in GSoC 2013

2013-03-24 Thread Sebastian Berg
On Thu, 2013-03-21 at 22:20 +0100, Ralf Gommers wrote: Hi all, It is the time of the year for Google Summer of Code applications. If we want to participate with Numpy and/or Scipy, we need two things: enough mentors and ideas for projects. If we get those, we'll apply under the PSF

[Numpy-discussion] C-API: Subclassing array for numpy 1.7 (with #define NPY_NO_DEPRECATED_API 0x00000007)

2013-03-24 Thread Marc Gronle
Hello together, we embedded Python 3 in a C++ environment. In this application I created a new class, that is a subclass from numpy array. Until now (numpy 1.6 or numpy 1.7 without the deprecation define (NPY_NO_DEPRECATED_API) the typedef for my class describing the object was something like

[Numpy-discussion] Generalized inner?

2013-03-24 Thread Jaime Fernández del Río
The other day I found myself finding trailing edges in binary images doing something like this: arr = np.random.randint(2, size=1000).astype(np.int8) pattern = np.array([1, 1, 1, 1, 0, 0]) arr_match = 2*arr - 1 pat_match = 2*pattern - 1 from numpy.lib.stride_tricks import as_strided arr_win =

Re: [Numpy-discussion] Numpy 1.7.1

2013-03-24 Thread Ondřej Čertík
On Fri, Mar 22, 2013 at 1:02 AM, Charles R Harris charlesr.har...@gmail.com wrote: The Numpy 1.7.1 release process seems to have stalled. My apologies for that. What do we need to finish up to get it going again? I think it would be nice to shoot for a release maybe the weekend after next.

Re: [Numpy-discussion] Generalized inner?

2013-03-24 Thread Nadav Horesh
This is what APL's . operator does, and I found it useful from time to time (but I was much younger then). Nadav Jaime Fernández del Río jaime.f...@gmail.com wrote: The other day I found myself finding trailing edges in binary images doing something like this: arr = np.random.randint(2,

[Numpy-discussion] ANN: NumPy 1.7.1rc1 release

2013-03-24 Thread Ondřej Čertík
Hi, I'm pleased to announce the availability of the first release candidate of NumPy 1.7.1rc1. Sources and binary installers can be found at https://sourceforge.net/projects/numpy/files/NumPy/1.7.1rc1/ Please test it and report any bugs. It fixes a few bugs, listed below. I would like to thank

Re: [Numpy-discussion] howto apply-along-axis?

2013-03-24 Thread Sergio Pascual
This is the closer I got to do what you say http://numpy-discussion.10968.n7.nabble.com/Reductions-with-nditer-working-only-with-the-last-axis-td8157.html Converts a 3D to 2D, but only works in the last axis. Any improvement would be welcomed.ç 2013/3/22 Neal Becker ndbeck...@gmail.com I

Re: [Numpy-discussion] ANN: NumPy 1.7.1rc1 release

2013-03-24 Thread Charles R Harris
On Sun, Mar 24, 2013 at 3:02 PM, Ondřej Čertík ondrej.cer...@gmail.comwrote: Hi, I'm pleased to announce the availability of the first release candidate of NumPy 1.7.1rc1. Sources and binary installers can be found at https://sourceforge.net/projects/numpy/files/NumPy/1.7.1rc1/ Please