./stan-users-guide/complex-numbers.html">Complex Numbers</a></li></ol></nav></header>




<section id="complex-numbers" class="level1">
<h1>Complex Numbers</h1>
<p>Stan supports complex scalars, matrices, and vectors as well as real-based ones.</p>
<section id="working-with-complex-numbers" class="level2">
<h2 class="anchored" data-anchor-id="working-with-complex-numbers">Working with complex numbers</h2>
<p>This section describes the complex scalar type, including how to build complex numbers, assign them,