Re: index of an element in a numarray array

2006-05-12 Thread avharut
thanks alot!! -- http://mail.python.org/mailman/listinfo/python-list

Re: index of an element in a numarray array

2006-05-12 Thread rory . brandybuck
[EMAIL PROTECTED] wrote: > how can i find in an efficient way the index of the last occurrence of > a given element in a numarray array? Something like that: >>> where(arange(100) == 10) (array([10]),) >>> _[-1][-1] 10 Or: >>> your_array = arange(10) >>> value = 3 >>> indices = where(your_array