Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

.flatten() python

>>> 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: #python
ADD COMMENT
Topic
Name
1+3 =