Having a matrix like
ma = [[0.343, 0.351, 0.306], [0.145, 0.368, 0.487]]
I want to get a vector like:
[0.343, 0.145, 0.351,
Flatten the array in Fortran order:
c = a.flatten(order='F')
You could also get the results you wanted with reshape, but it's wordier:
reshape
c = a.reshape(a.size, order='F')