<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>keisukefukuda</author_name>
  <author_url>https://blog.hatena.ne.jp/keisukefukuda/</author_url>
  <blog_title>本当は怖いHPC &amp; AI</blog_title>
  <blog_url>https://freak-da.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>（以下は自習資料です） QR分解のコードを書いてみる。とりあえずグラム・シュミットの直交化を適用して正規直交行列 $ Q $ を求め、それを利用して $R$ を求める。 全コードはこちら def qr_decomposition_gram_schmidt( A: ND, ) -&gt; Tuple[ND, ND]: &quot;&quot;&quot;与えられた正方行列aをGram-Schmidt法でQR分解する. Args: A (numpy.ndarray): 正方行列。 Returns: Tuple[numpy.ndarray, numpy.ndarray]: 正規直交行列Qと上三角行列Rのタプル。 &quot;&quot;&quot; assert …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffreak-da.hatenablog.com%2Fentry%2F2025%2F02%2F27%2F230305&quot; title=&quot;線形代数勉強：行列５分解 QR分解(2) Gram-Schmidtで軽く実装 - 本当は怖いHPC &amp;amp; AI&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-02-27 23:03:05</published>
  <title>線形代数勉強：行列５分解 QR分解(2) Gram-Schmidtで軽く実装</title>
  <type>rich</type>
  <url>https://freak-da.hatenablog.com/entry/2025/02/27/230305</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
