{"width":"100%","title":"\u3010Python\u3011numpy ndarray\u3068matrix\u306e\u7279\u5fb4 \u899a\u66f8\u304d","published":"2017-08-23 13:54:43","provider_url":"https://hatena.blog","blog_title":"\u4ffa\u8a00\u8a9e\u3002","version":"1.0","image_url":null,"categories":["Python","Numpy","\u914d\u5217\u64cd\u4f5c"],"author_url":"https://blog.hatena.ne.jp/hukkuramamemoti/","description":"MATLAB\u304b\u3089\u306e\u79fb\u884c\u7d44\u306b\u306f\u3068\u3063\u3064\u304d\u8f9b\u3044\u3068\u3053\u308d\u304c\u591a\u3005\u3042\u308bnumpy\u306e\u914d\u5217\uff0cndarray\u306e\u6c17\u4ed8\u3044\u305f\u70b9\u307e\u3068\u3081\u3002 numpy\u306f\u57fa\u672c\u3001\u6a2a\u30d9\u30af\u30c8\u30eb xx.shape -> (n, ) \u306f\u30d9\u30af\u30c8\u30eb\uff0c x.shape -> (n,m) \u306f\u914d\u5217 array([1, 2, 3])\u3084arange(10)\u3067\u4f5c\u6210\u3055\u308c\u308b\u306e\u306f\u30d9\u30af\u30c8\u30eb \u30d9\u30af\u30c8\u30eb\u306f\u6a19\u8a18\u3053\u305d\u6a2a\u30d9\u30af\u30c8\u30eb\u3060\u304c\u5411\u304d\u306f\u7121\u3044\u3002\u3088\u3063\u3066\u30d9\u30af\u30c8\u30eb(1\u00d7N)\u3092\u8ee2\u7f6e\u3092\u3057\u3066\u3082MATLAB\u306e\u69d8\u306bN\u00d71\u30d9\u30af\u30c8\u30eb\u306b\u306f\u306a\u3089\u306a\u3044\u3002 \u30d9\u30af\u30c8\u30eb\u3092\u30a4\u30c6\u30ec\u30fc\u30bf\u3068\u3057\u3066\u4f7f\u3046\u3068\u6570\u5024\u304c\u4e00\u3064\u305a\u3064\u53d6\u308a\u51fa\u305b\u308b\u3002 e.q. np.range(3) -> \u6700\u521d\uff1a1, \u6b21\uff1a2, \u6b21\uff1a3\u914d\u5217\u3092\u30a4\u30c6\u30ec\u30fc\u30bf\u3068\u3057\u3066\u4f7f\u3046\u3068 \u2026","url":"https://oregengo.hatenablog.com/entry/2017/08/23/135443","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foregengo.hatenablog.com%2Fentry%2F2017%2F08%2F23%2F135443\" title=\"\u3010Python\u3011numpy ndarray\u3068matrix\u306e\u7279\u5fb4 \u899a\u66f8\u304d - \u4ffa\u8a00\u8a9e\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://oregengo.hatenablog.com/","author_name":"hukkuramamemoti","type":"rich","height":"190"}