{"blog_title":"White scenery @showyou, hatena","title":"Numpy\u306endarray\u3068matrix\u3067\u306f*\u306e\u7d50\u679c\u304c\u7570\u306a\u308b","provider_name":"Hatena Blog","description":"(\u3053\u306e\u8a18\u4e8b\u306fQiita\u304b\u3089\u306e\u8ee2\u8f09\u306b\u306a\u308a\u307e\u3059\u3002) \u3059\u3054\u3044\u521d\u6b69\u7684\u306a\u8a71\u306a\u3093\u3067\u3059\u304c\u30fb\u30fb In [1]: import numpy as np In [2]: H = np.matrix([[1, 2], [3, 4]]) In [3]: H * H Out[3]: matrix([[ 7, 10], [15, 22]]) In [4]: J = np.array([[1, 2], [3, 4]]) In [5]: J * J Out[5]: array([[ 1, 4], [ 9, 16]]) \u3068\u3044\u3046\u611f\u3058\u306b\u3001np.matrix\u306e*\u306f\u884c\u5217\u306e\u639b\u3051\u7b97\u3067\u3042\u308b\u306e\u306b\u5bfe\u3057\u3001np.array\u306f\u8981\u7d20\u6bce\u306e\u7a4d(\u30a2\u30c0\u30de\u30fc\u30eb\u7a4d\u2026","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshowyou.hatenablog.com%2Fentry%2F2020%2F03%2F28%2F123528\" title=\"Numpy\u306endarray\u3068matrix\u3067\u306f*\u306e\u7d50\u679c\u304c\u7570\u306a\u308b - White scenery @showyou, hatena\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_name":"showyou","categories":["Python","Numpy"],"height":"190","width":"100%","author_url":"https://blog.hatena.ne.jp/showyou/","version":"1.0","published":"2018-09-09 12:35:28","blog_url":"https://showyou.hatenablog.com/","type":"rich","url":"https://showyou.hatenablog.com/entry/2020/03/28/123528"}