Re: [Numpy-discussion] Make np.bincount output same dtype as weights

2016-03-26 Thread Juan Nunez-Iglesias
Thanks for clarifying, Jaime, and fwiw I agree with Josef: I would expect np.bincount to behave like np.sum with regards to promoting weights dtypes. Including bool. On Sun, Mar 27, 2016 at 1:58 PM, wrote: > On Sat, Mar 26, 2016 at 9:54 PM, Joseph Fox-Rabinovitz > wrote: > > Would it make sense

Re: [Numpy-discussion] Make np.bincount output same dtype as weights

2016-03-26 Thread josef.pktd
On Sat, Mar 26, 2016 at 9:54 PM, Joseph Fox-Rabinovitz wrote: > Would it make sense to just make the output type large enough to hold the > cumulative sum of the weights? > > > - Joseph Fox-Rabinovitz > > -- Original message-- > > From: Jaime Fernández del Río > > Date: Sat, Mar 26, 2016 1

Re: [Numpy-discussion] Make np.bincount output same dtype as weights

2016-03-26 Thread Joseph Fox-Rabinovitz
Would it make sense to just make the output type large enough to hold the cumulative sum of the weights? - Joseph Fox-Rabinovitz -- Original message--From: Jaime Fernández del RíoDate: Sat, Mar 26, 2016 16:16To: Discussion of Numerical Python;Subject:[Numpy-discussion] Mak

Re: [Numpy-discussion] Make np.bincount output same dtype as weights

2016-03-26 Thread Jaime Fernández del Río
On Sat, Mar 26, 2016 at 11:10 PM, Juan Nunez-Iglesias wrote: > Just to clarify, this will only affect weighted bincounts, right? I can't > tell you in how many places my code depends on the return type being > integer!!! > Indeed! Unweighted bincounts still return, as all counting operations, a

Re: [Numpy-discussion] Make np.bincount output same dtype as weights

2016-03-26 Thread Juan Nunez-Iglesias
Just to clarify, this will only affect weighted bincounts, right? I can't tell you in how many places my code depends on the return type being integer!!! On 27 Mar 2016, 7:16 AM +1100, Jaime Fernández del Río, wrote: > Hi all, > > I have just submitted a PR (#7464(https://github.com/numpy/num

[Numpy-discussion] ATLAS build errors

2016-03-26 Thread Matthew Brett
Hi, I'm workon on building manylinux wheels for numpy, and I ran into unexpected problems with a numpy built against the ATLAS 3.8 binaries supplied by CentOS 5. I'm working on the manylinux docker container [1] To get ATLAS, I'm doing `yum install atlas-devel` which gets the default CentOS 5 AT

[Numpy-discussion] Some thoughts on ufunc reduction methods

2016-03-26 Thread Jaime Fernández del Río
The following write up was triggered by issue #7265 , you may want to review that discussion for context: In the docs, ufunc reduction operations are explained as "cumulatively applying the ufunc along an axis." This basically limits just about any reduc

[Numpy-discussion] Replacing paver with invoke

2016-03-26 Thread Charles R Harris
HI All, I've been looking around for something easier to use than paver for running shell commands. Fabric looked like a possibility, but it doesn't support Python 3 and in currently in the midst of a rewrite, not least because it has become burdened with technical dept. Invoke

[Numpy-discussion] Make np.bincount output same dtype as weights

2016-03-26 Thread Jaime Fernández del Río
Hi all, I have just submitted a PR (#7464 ) that fixes an enhancement request (#6854 ), making np.bincount return an array of the same type as the weights parameter. This is an important deviation from current b