>0</span>) == <span class="num">1</span>d</pre><p><code>Mat</code> may be used in arithemetic expressions which operate on two <code>Mat</code>s or on a
<code>Mat</code> and a primitive value. A fe examples:</p><pre><span class="kw">val</span> m = Mat(<span class="num">2</span>,<span class="num">2</span>,<span class="std">Array</span>(<span class="num">1</span>,<span class="num">2</span>,<span class="num">3</span>,<span class="num">4</span>))
m * m == Mat(<span class="num">2</span>,<span class="num">2</span