[Numpy-discussion] Silly array question
Christopher Barker
Chris.Barker at noaa.gov
Fri Apr 7 15:13:02 CDT 2006
Sasha wrote:
> One more obfuscated numpy entry:
>
>>>> M[tuple(transpose(I))]
> array([ 1, 6, 11, 6])
exactly. Can anyone explain why that works, but:
M[transpose(I)]
or
M[I]
doesn't?
-Chris
-
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Numpy-discussion
mailing list