On 3/7/07, Matthew Koichi Grimes <[EMAIL PROTECTED]> wrote:
I would like to twiddle with the strides of a matrix such that the rows
overlap each other. I've gotten this far:
In [1]: import numpy as N
In [2]: mat = N.arange(12).reshape(3,4)
In [3]: mat
Out[3]:
array([[ 0, 1, 2, 3],
[
I would like to twiddle with the strides of a matrix such that the rows
overlap each other. I've gotten this far:
In [1]: import numpy as N
In [2]: mat = N.arange(12).reshape(3,4)
In [3]: mat
Out[3]:
array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11]])
In [4]: mat.strides