Re: [Numpy-discussion] ENH: Proposal to add np.neighborwise in PR#9514

2017-08-04 Thread Tim Cera
As noted https://github.com/numpy/numpy/pull/303 a large part of this functionality has been implemented before for numpy and didn't go anywhere because it is already present in scipy.ndimage. IMHO it is better suited in numpy with a better name so that people don't miss it. Kindest regards, Tim

Re: [Numpy-discussion] ENH: Proposal to add np.neighborwise in PR#9514

2017-08-04 Thread Benjamin Root
So, this is a kernel mechanism? On Fri, Aug 4, 2017 at 6:31 PM, Joseph Fox-Rabinovitz < jfoxrabinov...@gmail.com> wrote: > I would like to propose the addition of a new function, > `np.neighborwise` in PR#9514. It is based on the discussion relating > to my proposal for `np.ratio` (PR#9481) and E

[Numpy-discussion] ENH: Proposal to add np.neighborwise in PR#9514

2017-08-04 Thread Joseph Fox-Rabinovitz
I would like to propose the addition of a new function, `np.neighborwise` in PR#9514. It is based on the discussion relating to my proposal for `np.ratio` (PR#9481) and Eric Wieser's `np.neighborwise` in PR#9428. This function accepts an array `a`, a vectorized function of two arguments `func`, and

[Numpy-discussion] F2PY problems with PGI compilers

2017-08-04 Thread Jeff Layton
Good afternoon! I'm trying to build a Python module using F2PY on a simple Fortran code using the PGI 17.4 community compilers. I'm using Conda 4.3.21 with Python 2.7.13 and F2PY 2. The command line I'm using is, f2py --compiler=pg --fcompiler=pg -c -m mdevice mdevice.f90 The output from

Re: [Numpy-discussion] quantile() or percentile()

2017-08-04 Thread Joseph Fox-Rabinovitz
I will go over your PR carefully to make sure we can agree on a matching API. After that, we can swap the backend out whenever I get around to it. Thanks for working on this. -Joe On Thu, Aug 3, 2017 at 5:36 PM, Chun-Wei Yuan wrote: > Cool. Just as a heads up, for my algorithm to work, I a