title: Slicing a matrix
body: <p>this post is linked to this <a href="https://stackoverflow.com/questions/16856788/slice-2d-array-into-smaller-2d-arrays">post</a> and this <a href="https://stackoverflow.com/questions/42297115/numpy-split-cube-into-cubes/42298440#42298440?newreg=c948ea5a6a7249e886ee2ce6a7b69de6">one</a>.</p>
  <p>I have tried the suggested function which works for small matrices. But I have a problem with big matrices.</p>
  <p>I am trying to slice a (1088, 1920) into 32x32 blocks, but it doesn't work.</p>
  <p>The values are ordered differently in the blocks than in the original matrix. Though the final dimensions on the outputed array are correct (2040, 32, 32) and the values of the first line are correct; the values of the second line of the first block is not the [1, 0:32] of the original array.</p>
  <p>I don't really have a clue about where could the problem come from. Could it be a memory/buffer problem ?</p>
  <p>Regards</p>