.ravel python
import numpy as np
x = np.array([[1, 3, 5], [11, 35, 56]])
y = np.ravel(x, order='F')
z = np.ravel(x, order='C')
p = np.ravel(x, order='A')
q = np.ravel(x, order='K')
y
z
p
q
#Output
array([ 1, 11, 3, 35, 5, 56])
array([ 1, 3, 5, 11, 35, 56])
array([ 1, 3, 5, 11, 35, 56])
array([ 1, 3, 5, 11, 35, 56])