(see <a href="#array-index-style.section">note</a> in this chapter).</p>
</div>
<div id="assigning" class="section level3 unnumbered">
<h3>Assigning</h3>
<p>Subarrays may be manipulated and assigned just like any other
variables. Similar to the behavior of matrices, Stan allows blocks
such as</p>
<pre class="stan"><code>real w[9, 10, 11];
real x[10, 11];
real y[11];
real z;
// ...
x = w[5];
y = x[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-