{"blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","width":"100%","published":"2017-05-16 12:05:06","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F16%2F120506\" title=\"NumPy\u306e\u4f7f\u3044\u65b9\uff08\uff11\uff16\uff09\u3000\u884c\u5217matrix - 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>","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/16/120506","version":"1.0","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","description":"NumPy\u306ematrix\u306b\u3064\u3044\u3066\u3002 class \u7a2e\u985e \u6b21\u5143 ndarray \u914d\u5217 \u6b21\u5143\u306f\u81ea\u7531 matrix \u884c\u5217 2\u6b21\u5143\u306b\u56fa\u5b9a ndarray\u3067\u306f\u884c\u5217\u306e\u7a4d\u3092\u8868\u3059\u3068\u304d\u306bdot()\u3092\u547c\u3073\u3060\u3059\u304c\u3001 matrix\u3067\u306f\u300c*\u300d\u3084\u300c**\u300d\u3067\u884c\u5217\u306e\u7a4d\u306a\u3069\u3092\u8868\u305b\u308b\u3002 \u305d\u306e\u4ed6\u306e\u4f7f\u3044\u65b9\u306fndarray\u3068\u540c\u69d8\u306e\u3088\u3046\u3067\u3059\u3002 import numpy as np a1 = np.array([[1, 2], [3, 4]]) a2 = np.array([[1, 1], [1, 1]]) print(a1 * a2) #\u540c\u3058\u4f4d\u7f6e\u306e\u8981\u7d20\u3069\u3046\u3057\u306e\u7a4d # [[1 2] # [3 4]] print(a1.dot(a2)) # \u2026","blog_url":"https://python-remrin.hatenadiary.jp/","provider_name":"Hatena Blog","author_name":"rare_Remrin","image_url":null,"type":"rich","title":"NumPy\u306e\u4f7f\u3044\u65b9\uff08\uff11\uff16\uff09\u3000\u884c\u5217matrix","provider_url":"https://hatena.blog","categories":["numpy","python","\u30e9\u30a4\u30d6\u30e9\u30ea"],"height":"190"}