{"author_name":"coffee_kabu","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","type":"rich","url":"https://coffee-guhaw.hateblo.jp/entry/2025/05/28/120000","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F05%2F28%2F120000\" title=\"\u3010numpy, python3\u3011\u3042\u308barray\u3092\u5225\u306earray\u306e\u30bd\u30fc\u30c8\u9806\u306b\u5f93\u3063\u3066\u30bd\u30fc\u30c8\u3059\u308b(argsort) - Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["python","numpy"],"blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","height":"190","image_url":"https://cdn.image.st-hatena.com/image/square/23ff597bd045490499b097f036afb3ec0665a0d5/backend=imagemagick;height=80;version=1;width=80/https%3A%2F%2Fcdn.user.blog.st-hatena.com%2Fcircle_image%2F88409737%2F1514352962196085","description":"\u5b9f\u969b\u4f7f\u3046\u3053\u3068\u306f\u306a\u304b\u3063\u305f\u3051\u3069\u3001\u4eca\u5f8c\u5fc5\u8981\u306a\u6c17\u3082\u3059\u308b\u306e\u3067\u30e1\u30e22\u3064\u306earray\u304c\u3042\u308b\u3001\u4f8b\u3048\u3070x\u3068y\u3068\u3059\u308bx\u306f\u30c7\u30fc\u30bf\u306eindex\u76f8\u5f53\u306e\u3082\u306e\u3067\u3001\u9806\u756a\u304c\u3050\u3061\u3083\u3050\u3061\u3083\u306b\u306a\u3063\u3066\u308b y\u306f\u30c7\u30fc\u30bf\u306e\u5024 x\u3092\u30bd\u30fc\u30c8\u3059\u308b\u3068\u304d\u306b\u3001y\u306e\u9806\u756a\u3082\u540c\u6642\u306b\u540c\u3058\u3088\u3046\u306b\u30bd\u30fc\u30c8\u3057\u3066\u307b\u3057\u3044\u25a0 \u53c2\u8003 : argsort: \u30bd\u30fc\u30c8\u306b\u4f7f\u3046\u30a4\u30f3\u30c0\u30a4\u30b9\u3092\u53d6\u5f97\u25a0 \u53c2\u8003 : [Python]Numpy\u30c7\u30fc\u30bf\u306e\u4e26\u3079\u66ff\u3048 argsort\u3092\u4f7f\u3048\u3070OKindex = np.argsort(x)\u3053\u308c\u3067\u3001x\u3092\u30bd\u30fc\u30c8\u3057\u305f\u3068\u304d\u306eindex\u3092\u53d6\u5f97\u3067\u304d\u308b x_new = x[index] \u3068\u3057\u305f\u3089\u3001\u5358\u7d14\u306bx\u3092\u30bd\u30fc\u30c8\u3057\u305f\u3053\u3068\u306b\u306a\u308bindex\u3092\u4f7f\u3063\u3066 y_new = y[ind\u2026","blog_url":"https://coffee-guhaw.hateblo.jp/","title":"\u3010numpy, python3\u3011\u3042\u308barray\u3092\u5225\u306earray\u306e\u30bd\u30fc\u30c8\u9806\u306b\u5f93\u3063\u3066\u30bd\u30fc\u30c8\u3059\u308b(argsort)","version":"1.0","published":"2025-05-28 12:00:00","width":"100%"}