/reference-manual/expressions.html#language-indexing.section">view current version</a>.
</div>
<div id="language-indexing.section" class="section level2" number="6.7">
<h2><span class="header-section-number">6.7</span> Indexing</h2>
<p>Stan arrays, matrices, vectors, and row vectors are all accessed
using the same array-like notation. For instance, if <code>x</code> is a
variable of type <code>array [] real</code> (a one-dimensional array of reals)
then <code>x[1]</code> is the value of the first element of