{"url":"https://maskit.hatenablog.com/entry/2022/01/09/110346","blog_url":"https://maskit.hatenablog.com/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","type":"rich","author_name":"maskit","image_url":null,"categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaskit.hatenablog.com%2Fentry%2F2022%2F01%2F09%2F110346\" title=\"np.arange() in c++ - \u5fd8\u98df\u5fd8\u6182\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","title":"np.arange() in c++","published":"2022-01-09 11:03:46","author_url":"https://blog.hatena.ne.jp/maskit/","description":"\u4e45\u3057\u3076\u308a\u306bPython\u304b\u3089c++\u306b\u623b\u3063\u305f\u3089\u3001 np.arange()\u3084np.linspace()\u3001\u305d\u3057\u3066np.append()\u304c\u4f7f\u3048\u306a\u3044\u3053\u3068\u306b \u5f37\u70c8\u306a\u3082\u3069\u304b\u3057\u3055\u3092\u899a\u3048\u305f\u3002 \u3064\u307e\u308a\u3001vector<double>\uff08\u3042\u308b\u3044\u306fvalarray\u304b\u305f\u3060\u306e\u914d\u5217\uff09\u306e\u7b49\u5dee\u6570\u5217\u3092 \u59cb\u5024\u3068\u5dee\u5206\u3042\u305f\u308a\u3092\u6307\u5b9a\u3057\u3066\u751f\u6210\u3057\u305f\u308a\u3001\u305d\u308c\u3089\u3092\u4e00\u767a\u3067\u7d50\u5408\u3059\u308b\u95a2\u6570\u304c\u307b\u3057\u3044\u3002 \u4f8b\u3068\u3057\u3066\u3001\u95a2\u6570double func( double )\u306e\u5024\u3092\u7b49\u9593\u9694\u3067\u8868\u793a\u3057\u305f\u3044\u3068\u304d\u3001 \u3082\u3057c++\u306bPython\u306enp.arange()\u306b\u5bfe\u5fdc\u3059\u308b\u95a2\u6570ARange()\u304c\u3042\u308c\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3002 for( auto x : ARange( 10. , 500. \u2026","width":"100%","blog_title":"\u5fd8\u98df\u5fd8\u6182"}