[Numpy-discussion] slight MapIter change

2013-05-11 Thread Sebastian Berg
Hey, (this is only interesting if you know what MapIter and actually use it) In case anyone already uses the newly exposed mapiter (it was never released yet). There is a tiny change, which only affects indexes that start with np.newaxis but otherwise just simplifies a tiny bit. The old block for

Re: [Numpy-discussion] somewhat less stupid problem with 0-d arrays

2013-05-11 Thread Robert Kern
On Sat, May 11, 2013 at 12:57 AM, Neal Becker wrote: > It would be convenient if in arithmetic 0-d arrays were just ignored - it > would > seem to me to be convenient in generic code where a degenerate array is > treated > as "nothing" > > np.zeros ((0,0)) + np.ones ((2,2)) > ---

Re: [Numpy-discussion] somewhat less stupid problem with 0-d arrays

2013-05-11 Thread Sebastian Berg
On Sat, 2013-05-11 at 08:30 -0400, Neal Becker wrote: > Sebastian Berg wrote: > > > On Fri, 2013-05-10 at 19:57 -0400, Neal Becker wrote: > >> It would be convenient if in arithmetic 0-d arrays were just ignored - it > >> would seem to me to be convenient in generic code where a degenerate array

Re: [Numpy-discussion] somewhat less stupid problem with 0-d arrays

2013-05-11 Thread Neal Becker
Sebastian Berg wrote: > On Fri, 2013-05-10 at 19:57 -0400, Neal Becker wrote: >> It would be convenient if in arithmetic 0-d arrays were just ignored - it >> would seem to me to be convenient in generic code where a degenerate array is >> treated as "nothing" >> > > Small naming detail. A 0-d ar

Re: [Numpy-discussion] printing array in tabular form

2013-05-11 Thread Sudheer Joseph
Thank youNicolodi,     I hope I did not hurt you by my little fight.!! with best regards, Sudheer   - Original Message - > From: Daniele Nicolodi > To: numpy-discussion@scipy.org > Cc: > Sent: Friday, 10 May 2013 6:21 PM > Subject: Re: [Numpy-discussion] printing array i

Re: [Numpy-discussion] somewhat less stupid problem with 0-d arrays

2013-05-11 Thread Sebastian Berg
On Fri, 2013-05-10 at 19:57 -0400, Neal Becker wrote: > It would be convenient if in arithmetic 0-d arrays were just ignored - it > would > seem to me to be convenient in generic code where a degenerate array is > treated > as "nothing" > Small naming detail. A 0-d array is an array with exactl

Re: [Numpy-discussion] printing array in tabular form

2013-05-11 Thread Sudheer Joseph
Thank you Very much, This will help me a lot. with best regards, Sudheer  - Original Message - > From: Derek Homeier > To: Discussion of Numerical Python > Cc: > Sent: Friday, 10 May 2013 6:10 PM > Subject: Re: [Numpy-discussion] printing array in tabular form

Re: [Numpy-discussion] printing array in tabular form

2013-05-11 Thread Sudheer Joseph
Thank you very much,   These tips with some effort from me should do it for me. with best regards, Sudheer   *** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. o