l4 unnumbered">
<h4>Mixing Matrices and Arrays</h4>
<p>The same holds for matrices, where 2-dimensional arrays may not be
assigned to matrices or vice-versa.</p>
<pre class="stan"><code>real a[3,4];
matrix[3,4] b;
// ...
a = b;  // illegal assignment of matrix to array
b = a;  // illegal assignment of array to matrix</code></pre>
</div>
<div id="mixing-matrices-and-vectors" class="section level4 unnumbered">
<h4>Mixing Matrices and Vectors</h4>
<p>A <span class="math inline">\(1 \times N\)</span> matrix can