r">

            <section class="normal" id="section-">

<div>
This is an old version, <a href="https://mc-stan.org/docs/functions-reference/array_operations.html#array-broadcasting">view current version</a>.
</div>
<div id="array-broadcasting" class="section level2">
<h2><span class="header-section-number">4.3</span> Array Broadcasting</h2>
<p>The following operations create arrays by repeating elements to fill
an array of a specified size. These operations work for all input
types T, including reals, inte