{"description":"NumPy\u306e\u884c\u5217\u8a08\u7b97\u306b\u3064\u3044\u3066 \u5185\u7a4d \u5185\u7a4d\u306fnp.dot()\u95a2\u6570\u3092\u4f7f\u3046\u304barray.dot()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u304b\u3002 \u5185\u7a4d\u306f\u9806\u5e8f\u306b\u3088\u3063\u3066\u7d50\u679c\u304c\u7570\u306a\u308b\u3002 import numpy as np a1 = np.ones([2, 2], dtype=int) a2 = np.arange(1, 5).reshape(2, 2) print(a1) # [[1 1] # [1 1]] print(a2) # [[1 2] # [3 4]] # \u884c\u5217\u306e\u5185\u7a4d(1) print(np.dot(a1, a2)) # [[4 6] # [4 6]] # \u884c\u5217\u306e\u5185\u7a4d(1) print(a1.dot(a2)) # [[4\u2026","categories":["numpy","python","\u30e9\u30a4\u30d6\u30e9\u30ea"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F12%2F183041\" title=\"NumPy\u306e\u4f7f\u3044\u65b9\uff08\uff11\uff11\uff09\u3000\u884c\u5217\u8a08\u7b97 - Remrin\u306epython\u653b\u7565\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"rare_Remrin","image_url":null,"author_url":"https://blog.hatena.ne.jp/rare_Remrin/","version":"1.0","blog_url":"https://python-remrin.hatenadiary.jp/","height":"190","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/12/183041","width":"100%","published":"2017-05-12 18:30:41","provider_name":"Hatena Blog","type":"rich","provider_url":"https://hatena.blog","title":"NumPy\u306e\u4f7f\u3044\u65b9\uff08\uff11\uff11\uff09\u3000\u884c\u5217\u8a08\u7b97","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18"}