strong><code>num_elements</code></strong><code>(row_vector x)</code><br>
The total number of elements in the vector x (same as function <code>cols</code>)</p>
<!-- int; num_elements; (matrix x); -->
<p></p>
<p><code>int</code> <strong><code>num_elements</code></strong><code>(matrix x)</code><br>
The total number of elements in the matrix x. For example, if <code>x</code> is a
<span class="math inline">\(5 \times 3\)</span> matrix, then <code>num_elements(x)</code> is 15</p>
<!-- int; rows; (vector x); -->
<