Thanks, the numpy documentation is much better and I understand it.
Do you know if you there is a one to one correspondence between reshape and linear indexing? By this I mean suppose we reshape a tensor A to a 1d array B, and then reshape to another tensor C, does A reshape -> B -> reshape C, the same as A reshape -> C? Assuming the shape of C is the same for both?