I\'m trying to reshape a numpy array using numpy.strided_tricks. This is the guide I\'m following: https://stackoverflow.com/a/2487551/4909087
numpy.strided_tricks
My use c
I have no idea why you think you need strides of 3. You need strides the distance in bytes between one element of a and the next, which you can get using a.strides:
a
a.strides
as_strided(a, (len(a) - 2, 3), a.strides*2)