학습일 : 2020.01.24
import numpy as np
x = np.arange(15).reshape(3, 5)
print(x)
[[ 0 1 2 3 4]
[ 5 6 7 8 9]
[10 11 12 13 14]]
np.ravel(x, order='F')
array([ 0, 5, 10, 1, 6, 11, 2, 7, 12, 3, 8, 13, 4, 9, 14])
temp = x.ravel()
print(temp)
[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14]
temp[0] = 100
print(temp)
print(x)
[100 1 2 3 4 5 6 7 8 9 10 11 12 13 14]
[[100 1 2 3 4]
[ 5 6 7 8 9]
[ 10 11 12 13 14]]