1>>> a = np.array([[1,2,3], [4,5,6]])
2>>> np.reshape(a, 6)
3array([1, 2, 3, 4, 5, 6])
4>>> np.reshape(a, 6, order='F')
5array([1, 4, 2, 5, 3, 6])
6>>> np.reshape(a, (3,-1)) # the unspecified value is inferred to be 2
7array([[1, 2],
8 [3, 4],
9 [5, 6]])