matrix-multiplication.expect.txt 473 B

1234567
  1. <span class="hljs-meta">@meta</span>
  2. <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">C</span>:</span>
  3. <span class="hljs-meta"> @decorator</span>
  4. <span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">f</span><span class="hljs-params">(self, H, V, beta, r)</span>:</span>
  5. S = (H @ beta - r).T @ inv(H @ V @ H.T) @ (H @ beta - r)
  6. <span class="hljs-keyword">return</span> S