[4];  // y == w[5][4] == w[5, 4]
z = y[3];  // z == w[5][4][3] == w[5, 4, 3]</code></pre>
</div>
<div id="arrays-of-matrices-and-vectors" class="section level3 unnumbered">
<h3>Arrays of matrices and vectors</h3>
<p>Arrays of vectors and matrices are accessed in the same way as arrays
of doubles. Consider the following vector and scalar declarations.</p>
<pre class="stan"><code>array[3, 4] vector[5] a;
array[4] vector[5] b;
vector[5] c;
real x;</code></pre>
<p>With these declarations, the following assignme