[Numpy-discussion] Silly array question

Webb Sprague webb.sprague at gmail.com
Fri Apr 7 14:00:10 CDT 2006

I appreciate everyone's help, but is there a NON obfuscated way to do
this without looping?  I think Chris's is my favorite, but I didn't
know I was starting a contest :)

>  >>> M[I[:,0], I[:,1]]
> array([ 1,  6, 11,  6])


More information about the Numpy-discussion mailing list