Re: [Numpy-discussion] GSoC?

2016-02-16 Thread Stephan Hoyer
On Wed, Feb 10, 2016 at 4:22 PM, Chris Barker wrote: > We might consider adding "improve duck typing for numpy arrays" >> > > care to elaborate on that one? > > I know it come up on here that it would be good to have some code in numpy > itself that made it easier to make array-like objects (I.e.

Re: [Numpy-discussion] Fwd: Windows wheels for testing

2016-02-16 Thread Matthew Brett
On Sat, Feb 13, 2016 at 9:55 AM, Jonathan Helmus wrote: > > > On 2/12/16 10:23 PM, Matthew Brett wrote: >> >> On Fri, Feb 12, 2016 at 8:18 PM, R Schumacher wrote: >>> >>> At 03:45 PM 2/12/2016, you wrote: PS C:\tmp> c:\Python35\python -m venv np-testing PS C:\tmp> .\np-testing\Scri

Re: [Numpy-discussion] Proposal to add `weights` to `np.percentile` and `np.median`

2016-02-16 Thread josef.pktd
On Tue, Feb 16, 2016 at 2:48 PM, Joseph Fox-Rabinovitz < jfoxrabinov...@gmail.com> wrote: > Please correct me if I misunderstood, but the code in that commit is > doing a full sort, somewhat similar to what > `scipy.stats.scoreatpercentile`. If that is correct, I will run some > benchmarks first,

Re: [Numpy-discussion] building NumPy with gcc if Python was built with icc?!?

2016-02-16 Thread Nathaniel Smith
In principle this should work (offer may be void on windows which has its own special weirdnesses, but I assume you're not on windows). icc and gcc should both support the same calling conventions and so forth. It sounds like you're just running into an annoying build system configuration issue whe

Re: [Numpy-discussion] Proposal to add `weights` to `np.percentile` and `np.median`

2016-02-16 Thread Joseph Fox-Rabinovitz
Please correct me if I misunderstood, but the code in that commit is doing a full sort, somewhat similar to what `scipy.stats.scoreatpercentile`. If that is correct, I will run some benchmarks first, but I think there is value to going forward with a numpy version that extends the current partition

Re: [Numpy-discussion] building NumPy with gcc if Python was built with icc?!?

2016-02-16 Thread G Young
I'm not sure about anyone else, but having been playing around with both gcc and icc, I'm afraid you might be out of luck. Is there any reason why you can't use a Python distribution built with gcc? On Tue, Feb 16, 2016 at 7:39 PM, BERGER Christian wrote: > Hi All, > > > > Here's a potentially

[Numpy-discussion] building NumPy with gcc if Python was built with icc?!?

2016-02-16 Thread BERGER Christian
Hi All, Here's a potentially dumb question: is it possible to build NumPy with gcc, if python was built with icc? Right now, the build is failing in the toolchain check phase, because gcc doesn't know how to handle icc-specific c flags (like -fp-model, prec-sqrt, ...) In our environment we're pr

Re: [Numpy-discussion] Proposal to add `weights` to `np.percentile` and `np.median`

2016-02-16 Thread josef.pktd
On Tue, Feb 16, 2016 at 1:41 PM, Joseph Fox-Rabinovitz < jfoxrabinov...@gmail.com> wrote: > Thanks for pointing me to that. I had something a bit different in > mind but that definitely looks like a good start. > > On Tue, Feb 16, 2016 at 1:32 PM, Antony Lee > wrote: > > See earlier discussion he

Re: [Numpy-discussion] Proposal to add `weights` to `np.percentile` and `np.median`

2016-02-16 Thread Joseph Fox-Rabinovitz
Thanks for pointing me to that. I had something a bit different in mind but that definitely looks like a good start. On Tue, Feb 16, 2016 at 1:32 PM, Antony Lee wrote: > See earlier discussion here: https://github.com/numpy/numpy/issues/6326 > Basically, naïvely sorting may be faster than a not-s

Re: [Numpy-discussion] Proposal to add `weights` to `np.percentile` and `np.median`

2016-02-16 Thread Antony Lee
See earlier discussion here: https://github.com/numpy/numpy/issues/6326 Basically, naïvely sorting may be faster than a not-so-optimized version of quickselect. Antony 2016-02-15 21:49 GMT-08:00 Joseph Fox-Rabinovitz : > I would like to add a `weights` keyword to `np.partition`, > `np.percentile

Re: [Numpy-discussion] [Suggestion] Labelled Array

2016-02-16 Thread Sérgio
Just something I tried with pandas: >>> image array([[[ 0, 1, 2, 3, 4], [ 5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18, 19]], [[20, 21, 22, 23, 24], [25, 26, 27, 28, 29], [30, 31, 32, 33, 34], [35, 36, 37, 38, 39]], [

Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-16 Thread Sebastian Berg
On Di, 2016-02-16 at 00:13 -0500, josef.p...@gmail.com wrote: > > > On Tue, Feb 16, 2016 at 12:09 AM, wrote: > > > > > > > > > > Or, it forces everyone to watch out for the color of the ducks :) > > > > It's just a number, whether it's python scalar, numpy scalar, 1D or > > 2D. > > And onc

Re: [Numpy-discussion] Fwd: Numexpr-3.0 proposal

2016-02-16 Thread Francesc Alted
2016-02-16 10:04 GMT+01:00 Robert McLeod : > On Mon, Feb 15, 2016 at 10:43 AM, Gregor Thalhammer < > gregor.thalham...@gmail.com> wrote: > >> >> Dear Robert, >> >> thanks for your effort on improving numexpr. Indeed, vectorized math >> libraries (VML) can give a large boost in performance (~5x), e

[Numpy-discussion] Fwd: Numexpr-3.0 proposal

2016-02-16 Thread Robert McLeod
On Mon, Feb 15, 2016 at 10:43 AM, Gregor Thalhammer < gregor.thalham...@gmail.com> wrote: > > Dear Robert, > > thanks for your effort on improving numexpr. Indeed, vectorized math > libraries (VML) can give a large boost in performance (~5x), except for a > couple of basic operations (add, mul, di

Re: [Numpy-discussion] Numexpr-3.0 proposal

2016-02-16 Thread Robert McLeod
On Mon, Feb 15, 2016 at 7:28 AM, Ralf Gommers wrote: > > > On Sun, Feb 14, 2016 at 11:19 PM, Robert McLeod > wrote: > >> >> 4.) I took a stab at converting from distutils to setuputils but this >> seems challenging with numpy as a dependency. I wonder if anyone has tried >> monkey-patching so th