# Write a NumPy program to collapse a 3-D array into one dimension array.  import numpy as np
x = np.eye(3)
print("3-D array:")
print(x)
f = np.ravel(x, order='F')
print("One dimension array:")
print(f)
