This is incorrect. Did you look at the output? The vectors are row-wise. You should state the output dimensions since it is invariant: size x window.