block"><nav class="quarto-page-breadcrumbs quarto-title-breadcrumbs d-none d-lg-block" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../reference-manual/encoding.html">Language</a></li><li class="breadcrumb-item"><a href="../reference-manual/user-functions.html">User-Defined Functions</a></li></ol></nav></header>

<div>
This is an old version, <a href="https://mc-stan.org/docs/reference-manual/user-functions.html">view current version</a>.
</div>




<section id="functi