{"provider_name":"Hatena Blog","author_name":"SedimentHydraulics","published":"2022-10-01 13:03:48","width":"100%","author_url":"https://blog.hatena.ne.jp/SedimentHydraulics/","url":"https://computational-sediment-hyd.hatenablog.jp/entry/2022/10/01/130348","version":"1.0","height":"190","categories":["R"],"image_url":null,"blog_title":"\u8da3\u5473\u3067\u8a08\u7b97\u6d41\u7802\u6c34\u7406 Computational Sediment Hydraulics for Fun Learning ","provider_url":"https://hatena.blog","description":"\u6570\u5024\u8a08\u7b97\u3067\u306f\u30a4\u30f3\u30d7\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u7528\u306e\u9023\u756a\u3092\u632f\u308b\u3053\u3068\u3088\u304f\u3042\u308a\u307e\u3059\u3002 \u30c6\u30af\u30cb\u30c3\u30af\u306e\u30e1\u30e2\u3067\u3059\u3002 \u914d\u5217\u3092\u7e70\u308a\u8fd4\u3059 \u914d\u52170\uff5e4\u30923\u56de\u7e70\u308a\u8fd4\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u3067\u3059\u3002 import numpy as np x = range(5) print(list(x)) # [0, 1, 2, 3, 4] i = np.tile(x, 3) print(i) # [0 1 2 3 4 0 1 2 3 4 0 1 2 3 4] \u914d\u5217\u306e\u8981\u7d20\u3092\u7e70\u308a\u8fd4\u3059 \u914d\u52170\uff5e4\u306e\u8981\u7d20\u3092\u54043\u56de\u7e70\u308a\u8fd4\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u3067\u3059\u3002 i = np.repeat(x, 3) print(i) # [0 0 0 1 1 \u2026","blog_url":"https://computational-sediment-hyd.hatenablog.jp/","type":"rich","title":"\u5099\u5fd8\u9332\uff1anumpy\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u7528\u306e\u9023\u756a\u3092\u632f\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomputational-sediment-hyd.hatenablog.jp%2Fentry%2F2022%2F10%2F01%2F130348\" title=\"\u5099\u5fd8\u9332\uff1anumpy\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u7528\u306e\u9023\u756a\u3092\u632f\u308b - \u8da3\u5473\u3067\u8a08\u7b97\u6d41\u7802\u6c34\u7406 Computational Sediment Hydraulics for Fun Learning \" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}