<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>accs2014</author_name>
  <author_url>https://blog.hatena.ne.jp/accs2014/</author_url>
  <blog_title>いきなり答える備忘録</blog_title>
  <blog_url>https://www.officeisyours.com/</blog_url>
  <categories>
    <anon>Googleスプレッドシート</anon>
  </categories>
  <description>Googleスプレッドシートで、行列のトレース（tr=正方行列の対角要素の和）を求める方法についてです。 「=SUM(ARRAYFORMULA(行列*MUNIT(次数)))」という式で行列のトレースが求められます。手順 画像ではB2:D4の範囲に3行3列の行列が入力されています。 これに対しF2セルに式を入力して行列のトレースを求めています。 F2セル =SUM(ARRAYFORMULA(B2:D4*MUNIT(3))) 普通に考えるとまず対角成分の配列を求めるところからやりたくなりますが、これが案外困難です。 そこで単位行列と*演算子で結び、対応する要素の積をそれぞれ求めることで対角成分以外…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.officeisyours.com%2Fentry%2F2022%2F04%2F18%2F180000&quot; title=&quot;（Gスプレッドシート）行列のトレース（対角成分の和）を求める - いきなり答える備忘録&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/a/accs2014/20220418/20220418131303.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-04-18 18:00:00</published>
  <title>（Gスプレッドシート）行列のトレース（対角成分の和）を求める</title>
  <type>rich</type>
  <url>https://www.officeisyours.com/entry/2022/04/18/180000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
