Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

flatten array

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: #flatten #array
ADD COMMENT
Topic
Name
5+4 =