Re: [Numpy-discussion] speed of random number generator compared to Julia

2017-04-03 Thread Jaime Fernández del Río
On Mon, Apr 3, 2017 at 3:20 PM, Pierre Haessig wrote: > Hello, > Le 30/03/2017 à 13:31, Pierre Haessig a écrit : > > [] > > But how come Julia is 4-5x faster since Numpy uses C implementation for > the entire process ? (Mersenne Twister -> uniform double ->

Re: [Numpy-discussion] bitwise or'ing rows

2017-04-04 Thread Jaime Fernández del Río
On Tue, Apr 4, 2017 at 9:14 AM, Mads Ipsen wrote: > Hi > > If I have an n x m array of bools, is there a handy way for me to perform > a 'bitwise_and' or 'bitwise_or' along an axis, for example all the rows or > all the columns? For example > > a = > [[1,0,0,0], >

Re: [Numpy-discussion] Numpy arrays and slicing comprehension issue

2017-07-08 Thread Jaime Fernández del Río
The last index is exclusive: [a:b] means a <= index < b. On Jul 8, 2017 10:20 AM, wrote: > Hi > > Once again I need your help to understand one topic concerning slicing > topic, or in other word I do not understand how it works in that particular > (but common) case; I’m

[Numpy-discussion] Adding out to bincount

2017-07-13 Thread Jaime Fernández del Río
There is an ongoing discussion on #9397 about adding an out= keyword argument to np.bincount(). Presently the design seems headed toward: - the new counts will be added to the contents of out, perhaps we need a better name than out, suggestions

Re: [Numpy-discussion] Proposal: np.search() to complement np.searchsorted()

2017-05-16 Thread Jaime Fernández del Río
On Tue, May 16, 2017 at 1:25 AM, Stephan Hoyer wrote: > I like the idea of a strategy keyword argument. strategy='auto' leaves the > door open for future improvements, e.g., if we ever add hash tables to > numpy. > > For the algorithm, I think we actually want to sort the

Re: [Numpy-discussion] NumPy sprint May 24-25 at BIDS

2018-05-17 Thread Jaime Fernández del Río
$#!#, was looking at the wrong calendar month: Thursday half day, Friday all day. Jaime On Thu, May 17, 2018 at 4:37 PM Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > OK, make that all day Friday only, if it's Friday and Saturday. > > Jaime > > On Thu, May 17,

Re: [Numpy-discussion] NumPy sprint May 24-25 at BIDS

2018-05-17 Thread Jaime Fernández del Río
OK, make that all day Friday only, if it's Friday and Saturday. Jaime On Thu, May 17, 2018 at 4:36 PM Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > Hi Matti, > > I will be joining you on Thursday, sometime around noon, and all day > Friday. > > Jaime > >

Re: [Numpy-discussion] NumPy sprint May 24-25 at BIDS

2018-05-17 Thread Jaime Fernández del Río
Hi Matti, I will be joining you on Thursday, sometime around noon, and all day Friday. Jaime On Thu, May 17, 2018 at 4:11 PM Matti Picus wrote: > On 09/05/18 13:33, Matti Picus wrote: > > A reminder - we will take advantage of a few NumPy developers being at > >

Re: [Numpy-discussion] NEP sprint: 21 and 22 March

2018-03-16 Thread Jaime Fernández del Río
I will not be joining you for this sprint, but will be in the Bay Area from May 12th to May 25th, and wouldn't mind spending a day visiting you. If it works for you and anyone else want to join we could try to give it a little more structure than "just came over to say hi!" Jaime On Thu, Mar

Re: [Numpy-discussion] best way of speeding up a filtering-like algorithm

2018-03-29 Thread Jaime Fernández del Río
Hi Catherine, One problem with sliding window algorithms is that the straightforward approach can be very inefficient. Ideally you would want to not recompute your windowed quantity from all points in the window, but to reuse the result from an overlapping window and only take into account the