[Numpy-discussion] Multiarray PEP

Timo Korvola tkorvola at welho.com
Fri Feb 18 08:20:19 EST 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, ...][[0], ...] would return
the diagonal of a.

-- 
	Timo Korvola		<URL:http://www.iki.fi/tkorvola>




More information about the NumPy-Discussion mailing list