[Numpy-discussion] Multiarray PEP
tkorvola at welho.com
Fri Feb 18 08:20:19 CST 2005
Paul Barrett <barrett at stsci.edu> writes:
> Any later ellipsis operators should be ignored, otherwise this
> situation is ambiguous.
The PEP says they'll turn into colons, which is not the same as being
ignored. It only describes advanced indexing though, which is very
different from basic indexing. In advanced indexing an ellipsis would
pick diagonal entries, e.g., a[NewAxis, ...][, ...] would return
the diagonal of a.
Timo Korvola <URL:http://www.iki.fi/tkorvola>
More information about the Numpy-discussion