presentations/highlight-js/test/markup/python/matrix-multiplication.expect.txt

8 lines
473 B
Text
Raw Permalink Normal View History

2018-12-07 08:48:05 -06:00
<span class="hljs-meta">@meta</span>
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">C</span>:</span>
<span class="hljs-meta"> @decorator</span>
<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>
S = (H @ beta - r).T @ inv(H @ V @ H.T) @ (H @ beta - r)
<span class="hljs-keyword">return</span> S