g/docs/reference-manual/types.html#array-data-types.section">view current version</a>.
</div>
<div id="array-data-types.section" class="section level2">
<h2><span class="header-section-number">5.5</span> Array Data Types</h2>
<p>Stan supports arrays of arbitrary dimension. The values in an array
can be any type, so that arrays may contain values that are simple
reals or integers, vectors, matrices, or other arrays. Arrays are the
only way to store sequences of integers, and some functions in Stan,
such as d