dex.html">Type</a> &#x00BB; <a href="../../index.html">Device</a> &#x00BB; <a href="../index.html">A</a> &#x00BB; Mat</nav><header class="odoc-preamble"><h1>Module <code><span>A.Mat</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-diagm"><a href="#val-diagm" class="anchor"></a><code><span><span class="keyword">val</span> diagm : <span><span class="optlabel">?k</span>:int <span class="arrow">&#45;&gt;</span></span> <span><a href="../index.ht