<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakku22</author_name>
  <author_url>https://blog.hatena.ne.jp/kakku22/</author_url>
  <blog_title>kakakakakku blog</blog_title>
  <blog_url>https://kakakakakku.hatenablog.com/</blog_url>
  <categories>
    <anon>NumPy</anon>
    <anon>Python</anon>
  </categories>
  <description>Numpy で dot() 関数を使うと配列同士の「ドット積（内積）」を計算できる．詳しくはドキュメントに載っているけど，dot() 関数は引数 a と b に指定する値（1次元配列／2次元配列）によって挙動が異なる．個人的にわかりにくかったため，具体的に実装しながら整理することにした．またドキュメントには dot() 関数以外を使うべきシナリオもあり代替案も載っている． numpy.org 1. ドット積（内積）🔡 まず，a と b のどちらにも「1次元配列（ベクトル）」を指定すると，ベクトルの「ドット積（内積）」を計算できる．ドキュメントには以下のように載っている． If both a a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakakakakku.hatenablog.com%2Fentry%2F2021%2F05%2F31%2F104411&quot; title=&quot;Numpy の dot() 関数は引数によって「ドット積（内積）」や「行列積」の計算になる - kakakakakku blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kakku22/20210510/20210510130542.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-31 10:44:11</published>
  <title>Numpy の dot() 関数は引数によって「ドット積（内積）」や「行列積」の計算になる</title>
  <type>rich</type>
  <url>https://kakakakakku.hatenablog.com/entry/2021/05/31/104411</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
