Re: [Numpy-discussion] 100 Numpy exercices

2014-05-29 Thread Valentin Haenel
Nicolas, * Nicolas Rougier [2014-05-29]: > Thanks for reminded me about this great tool. > I intended to use it after I get all 100 exercises but it really helps track > errors quickly. > I will now use it to keep a notebook up to date with each commit . Sweet! In that case I must make sure no

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-29 Thread Nicolas P. Rougier
How would you do that ? 5. Create a vector with values ranging from 10 to 99 9. Create a 5x5 matrix with values 1,2,3,4 just below the diagonal On 29 May 2014, at 07:04, nicky van foreest wrote: > Hi, > > Very helpful, these exercises. > > Pertaining to exercise 9. Is there a reason not t

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-29 Thread Nicolas P. Rougier
Hi Valentin, Thanks for reminded me about this great tool. I intended to use it after I get all 100 exercises but it really helps track errors quickly. I will now use it to keep a notebook up to date with each commit . Nicolas On 28 May 2014, at 23:46, Valentin Haenel wrote: > Hi Nicolas,

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-28 Thread nicky van foreest
I meant exercise 9 of the neophyte section... On 29 May 2014 07:04, nicky van foreest wrote: > Hi, > > Very helpful, these exercises. > > Pertaining to exercise 9. Is there a reason not to use the solution of > exercise 5? > > bye > > Nicky > > > On 29 May 2014 00:59, Eraldo Pomponi wrote: > >

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-28 Thread nicky van foreest
Hi, Very helpful, these exercises. Pertaining to exercise 9. Is there a reason not to use the solution of exercise 5? bye Nicky On 29 May 2014 00:59, Eraldo Pomponi wrote: > It doesn't use stride_tricks, and seberg doesn't quite like it, but this >> made the rounds in StackOverflow a couple

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-28 Thread Eraldo Pomponi
> > It doesn't use stride_tricks, and seberg doesn't quite like it, but this > made the rounds in StackOverflow a couple of years ago: > > > http://stackoverflow.com/questions/16970982/find-unique-rows-in-numpy-array/16973510#16973510 > > It may not work properly on floats, but I think it is a very

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-28 Thread Valentin Haenel
Hi Nicolas, * Nicolas Rougier [2014-05-27]: > I've updated the numpy exercices collection and made it available on > github at: > > https://github.com/rougier/numpy-100 > > > These exercices mainly comes from this mailing list and also from > stack overflow. If you have other examples in mind,

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-27 Thread Nicolas Rougier
Thanks, you just inaugurated the master section. Nicolas On 27 May 2014, at 21:48, Jaime Fernández del Río wrote: > On Tue, May 27, 2014 at 12:27 PM, Nicolas Rougier > wrote: > Any other tricky stride_trick tricks ? I promised to put them in the master > section. > > > It doesn't use stri

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-27 Thread Jaime Fernández del Río
On Tue, May 27, 2014 at 12:27 PM, Nicolas Rougier wrote: > Any other tricky stride_trick tricks ? I promised to put them in the > master section. > > It doesn't use stride_tricks, and seberg doesn't quite like it, but this made the rounds in StackOverflow a couple of years ago: http://stackoverfl

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-27 Thread Nicolas Rougier
On 27 May 2014, at 21:09, Chris Barker wrote: > On Mon, May 26, 2014 at 9:57 PM, Nicolas Rougier > wrote: > > I've updated the numpy exercices collection and made it available on github > at: > > https://github.com/rougier/numpy-100 > > > very useful resource -- thanks! > > a couple tiny

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-27 Thread Chris Barker
On Mon, May 26, 2014 at 9:57 PM, Nicolas Rougier wrote: > > I've updated the numpy exercices collection and made it available on > github at: > > https://github.com/rougier/numpy-100 > > very useful resource -- thanks! a couple tiny notes: 1) In the first section, the phrases "Create a ..." and

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-27 Thread Aron Ahmadia
Very cool! On Tue, May 27, 2014 at 12:57 AM, Nicolas Rougier wrote: > > Hi all, > > I've updated the numpy exercices collection and made it available on > github at: > > https://github.com/rougier/numpy-100 > > > These exercices mainly comes from this mailing list and also from stack > overflow.

[Numpy-discussion] 100 Numpy exercices

2014-05-26 Thread Nicolas Rougier
Hi all, I've updated the numpy exercices collection and made it available on github at: https://github.com/rougier/numpy-100 These exercices mainly comes from this mailing list and also from stack overflow. If you have other examples in mind, do not hesitate to make a pull request. The maste