numpy.ravel()
numpy.ravel
-
numpy.ravel(a, order='C')
[source] -
Return a contiguous flattened array.
A 1-D array, containing the elements of the input, is returned. A copy is made only if needed.
As of NumPy 1.10, the returned array will have the same type as the input array. (for example, a masked array will be returned for a masked array input)
Parameters: a : array_like
Input array. The elements in
a
are read in the order specified byorder