Re: [Numpy-discussion] strange behavior of variable

2013-08-18 Thread Sudheer Joseph
Tank you, It worked fine, with best regards, Sudheer From: Nathaniel Smith To: Discussion of Numerical Python >Sent: Sunday, 18 August 2013 3:01 PM >Subject: Re: [Numpy-discussion] strange behavior of variable > > > >Try: >np.argsort(a)[-n:] >-n >On 18 Aug 2013 10:

Re: [Numpy-discussion] strange behavior of variable

2013-08-18 Thread Nathaniel Smith
> *To:* numpy-discussion@scipy.org > *Sent:* Sunday, 18 August 2013 1:57 PM > *Subject:* Re: [Numpy-discussion] strange behavior of variable > > On 2013/08/17 9:49 PM, Sudheer Joseph wrote: > > Hi, > > I have defined a small function to find the n maximum values &g

Re: [Numpy-discussion] strange behavior of variable

2013-08-18 Thread Sudheer Joseph
o.com >Web- http://oppamthadathil.tripod.com >*** > > > >> >> From: Eric Firing >>To: numpy-discussion@scipy.org >>Sent: Sunday, 18 August 2013 1:57 PM >>Subject: Re: [Numpy-discussion]

Re: [Numpy-discussion] strange behavior of variable

2013-08-18 Thread Sudheer Joseph
://oppamthadathil.tripod.com *** > > From: Eric Firing >To: numpy-discussion@scipy.org >Sent: Sunday, 18 August 2013 1:57 PM >Subject: Re: [Numpy-discussion] strange behavior of variable > > >On 201

Re: [Numpy-discussion] strange behavior of variable

2013-08-18 Thread Eric Firing
On 2013/08/17 9:49 PM, Sudheer Joseph wrote: > Hi, > I have defined a small function to find the n maximum values > of an array as below. With in it I assign the input array to a second > array and temporarily make the array location after first iteration as > nan. I expected this tempora

[Numpy-discussion] strange behavior of variable

2013-08-18 Thread Sudheer Joseph
Hi, I have defined a small function to find the n maximum values of an array as below. With in it I assign the input array to a second array and temporarily make the array location after first iteration as nan. I expected this temporary change to be limited to the second variable. Howev