Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy flatten

>>> a = np.array([[1,2], [3,4]])
>>> a.flatten()
array([1, 2, 3, 4])
>>> a.flatten('F')
array([1, 3, 2, 4])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #flatten
ADD COMMENT
Topic
Name
3+5 =