From: Emanuele O. <oli...@it...> - 2006-07-11 09:57:33
|
Wow. I have to study much more indexing. It works pretty well. Just to help indexing newbie like on using your advice: A[arange(A.shape[0])[:,newaxis],indexes] Thanks a lot! Emanuele Pau Gargallo wrote: > here goes a first try: > > A[arange(2)[:,newaxis],indexes] |