Re: [Numpy-discussion] Include last element when subindexing numpy arrays?

2016-08-31 Thread Matti Viljamaa
> On 31 Aug 2016, at 15:22, Robert Kern wrote: > > On Wed, Aug 31, 2016 at 12:28 PM, Matti Viljamaa <mailto:mvilja...@kapsi.fi>> wrote: > > > > Is there a clean way to include the last element when subindexing numpy > > arrays? > > Since the defaul

[Numpy-discussion] Why np.fft.rfftfreq only returns up to Nyqvist?

2016-08-31 Thread Matti Viljamaa
What’s the reasonability of np.fft.rfftfreq returning frequencies only up to Nyquist, rather than for the full sample rate? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Include last element when subindexing numpy arrays?

2016-08-31 Thread Matti Viljamaa
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]) ___ NumPy-Dis