teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

追記

2019/03/11 12:59

投稿

hayataka2049
hayataka2049

スコア30939

answer CHANGED
@@ -14,4 +14,13 @@
14
14
  array([1, 1, 2, 2, 3, 3, 4, 4])
15
15
  ```
16
16
 
17
- [numpy.reshape — NumPy v1.16 Manual](https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html#numpy.reshape)
17
+ [numpy.reshape — NumPy v1.16 Manual](https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html#numpy.reshape)
18
+
19
+ ---
20
+
21
+ tiitoiさんの回答を見て`ravel`メソッドの存在を思い出したので。
22
+
23
+ ```python
24
+ >>> a.ravel(order="F")
25
+ array([1, 1, 2, 2, 3, 3, 4, 4])
26
+ ```