回答編集履歴

1

追記

2019/03/11 12:59

投稿

hayataka2049
hayataka2049

スコア30933

test CHANGED
@@ -31,3 +31,21 @@
31
31
 
32
32
 
33
33
  [numpy.reshape — NumPy v1.16 Manual](https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html#numpy.reshape)
34
+
35
+
36
+
37
+ ---
38
+
39
+
40
+
41
+ tiitoiさんの回答を見て`ravel`メソッドの存在を思い出したので。
42
+
43
+
44
+
45
+ ```python
46
+
47
+ >>> a.ravel(order="F")
48
+
49
+ array([1, 1, 2, 2, 3, 3, 4, 4])
50
+
51
+ ```