31 Aug
2016
31 Aug
'16
12:22 p.m.
On Wed, Aug 31, 2016 at 12:28 PM, Matti Viljamaa <mviljamaa@kapsi.fi> wrote:
Is there a clean way to include the last element when subindexing numpy
arrays?
Since the default behaviour of numpy arrays is to omit the “stop index”.
So for,
A array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) A[0:5] array([0, 1, 2, 3, 4])
A[5:] -- Robert Kern