Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 87)
87.
How can you flatten a NumPy array arr in column-major order?
arr.flatten()
np.column_stack(arr)
arr.ravel(order='F')
np.column_major(arr)
Answer: Option
Explanation:
The ravel() function with order='F' flattens the array in column-major order.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.