Re: [Numpy-discussion] Numpy arrays and slicing comprehension issue

2017-07-08 Thread Daπid
On 8 July 2017 at 13:03, Jaime Fernández del Río wrote: > The last index is exclusive: > [a:b] means a <= index < b. > And the consequence is that the length of your array is b - a, so [:3] gives you the first 3 values. ___

Re: [Numpy-discussion] Numpy arrays and slicing comprehension issue

2017-07-08 Thread Jaime Fernández del Río
The last index is exclusive: [a:b] means a <= index < b. On Jul 8, 2017 10:20 AM, wrote: > Hi > > Once again I need your help to understand one topic concerning slicing > topic, or in other word I do not understand how it works in that particular > (but common) case; I’m

Re: [Numpy-discussion] Scipy 2017 NumPy sprint

2017-07-08 Thread josef . pktd
On Fri, Jul 7, 2017 at 6:42 PM, Ryan May wrote: > On Fri, Jul 7, 2017 at 4:27 PM, Marten van Kerkwijk < > m.h.vankerkw...@gmail.com> wrote: > >> Hi All, >> >> I doubt I'm really the last one thinking ndarray subclassing is a good >> idea, but as that was stated, I feel I should

[Numpy-discussion] Numpy arrays and slicing comprehension issue

2017-07-08 Thread paul . carrico
Hi Once again I need your help to understand one topic concerning slicing topic, or in other word I do not understand how it works in that particular (but common) case; I'm trying to reassign the 4 first values in an array: * If I use [:3] I'm expecting to have 4 values (index 0 to 3