Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flat numpy array

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