Re: [Numpy-discussion] Arguments silently ignored (kwargs) in meshgrid etc.

2014-05-29 Thread Michael McNeil Forbes
On May 29, 2014, at 3:16 PM, Michael McNeil Forbes wrote: > On May 29, 2014, at 1:41 AM, Ralf Gommers wrote: >> On Thu, May 29, 2014 at 5:35 AM, Michael McNeil Forbes >> wrote: >>> I just noticed that meshgrid() silently ignore extra arguments. It just >>> burned me (I forgot that it is mesh

Re: [Numpy-discussion] Arguments silently ignored (kwargs) in meshgrid etc.

2014-05-29 Thread Michael McNeil Forbes
On May 29, 2014, at 1:41 AM, Ralf Gommers wrote: > On Thu, May 29, 2014 at 5:35 AM, Michael McNeil Forbes > wrote: >> I just noticed that meshgrid() silently ignore extra arguments. It just >> burned me (I forgot that it is meshgrid(indexing='ij') and tried >> meshgrid(indices='ij') which sub

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] simple way to denote unchanged dimension in reshape?

2014-05-29 Thread Chao YUE
Oh, I didn't think it out. thanks. Chao On Thu, May 29, 2014 at 11:59 AM, Dave Hirschfeld wrote: > Chao YUE gmail.com> writes: > > > > > > > > > Dear all, > > I have a simple question. Is there a way to denote the unchanged > dimension > in the reshape function? like suppose I have an array n

Re: [Numpy-discussion] simple way to denote unchanged dimension in reshape?

2014-05-29 Thread Dave Hirschfeld
Chao YUE gmail.com> writes: > > > > Dear all, > I have a simple question. Is there a way to denote the unchanged dimension in the reshape function? like suppose I have an array named "arr" having three dims with the first dimension length as 48, I want to reshape the first dim into 12*4, bu

[Numpy-discussion] simple way to denote unchanged dimension in reshape?

2014-05-29 Thread Chao YUE
Dear all, I have a simple question. Is there a way to denote the unchanged dimension in the reshape function? like suppose I have an array named "arr" having three dims with the first dimension length as 48, I want to reshape the first dim into 12*4, but keeping all the other dimension length unch

Re: [Numpy-discussion] Arguments silently ignored (kwargs) in meshgrid etc.

2014-05-29 Thread Ralf Gommers
On Thu, May 29, 2014 at 5:35 AM, Michael McNeil Forbes < michael.forbes+pyt...@gmail.com> wrote: > I just noticed that meshgrid() silently ignore extra arguments. It just > burned me (I forgot that it is meshgrid(indexing='ij') and tried > meshgrid(indices='ij') which subtly broke my code.) > Th