
May 20, 2021
7:20 p.m.
On Thu, 20 May 2021 at 20:06, Ethan Furman <ethan@stoneleaf.us> wrote:
On 5/20/21 11:00 AM, Paul Moore wrote:
But it nevertheless feels like a bit of an abuse - the original point of ellipsis was for indexing, and in particular complex slices like a[1:20:2, ..., 3:5]. That usage is common in numpy, as I understand it,
Interesting -- do you know what ... means in that context?
In general, it just means a.getitem((slice(1,20,2), Ellipsis, slice(3,5))), which has no specifically-defined meaning. In numpy, it means something along the lines of "broadcast along this axis" (I don't know the numpy terminology very well). Paul