I am using numpy. I have a matrix with 1 column and N rows and I want to get an array from with N elements.
For example, if i have
M = matrix([, , , ])
A = array([1,2,3,4])
A = np.array(M.T)
If you'd like something a bit more readable, you can do this:
A = np.squeeze(np.asarray(M))
Equivalently, you could also do:
A = np.asarray(M).reshape(-1), but that's a bit less easy to read.