[Numpy-discussion] Specifying Index Programmatically
Sat Aug 8 23:02:43 CDT 2009
On Sat, Aug 8, 2009 at 8:54 PM, Neil Martinsen-Burrell<email@example.com> wrote:
> The ellipsis is a built-in python constant called Ellipsis. The colon
> is a slice object, again a python built-in, called with None as an
> argument. So, z[...,2,:] == z[Ellipsis,2,slice(None)].
Very helpful! Thank you. I didn't run into this information in any
of the indexing tutorials I ran through. If I get some time, I'll try
to add it.
More information about the NumPy-Discussion