In Matlab it is possible to access elements of a matrix linearly:
>> A=[1 2 3; 4 5 6]
A =
1 2 3
4 5 6
>> A(1)
ans =
1
>> A(2)
ans =
4
>> A(3)
ans =
2
Looks like Matlab does reshape matrix on the fly.
Is it possible to do similar in Python?
If I do directly, it does not works:
A=[[1,2,3],[4,5,6]]
A[1]
Out[2]: [4, 5, 6]