<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r71089723">src/mlpack/methods/ne/population.hpp</a>:</p>
<pre style='color:#555'>&gt; +  // Set next genome id.
&gt; +  void NextGenomeId(ssize_t nextGenomeId) { aNextGenomeId = nextGenomeId; }
&gt; +
&gt; +  // Get next genome id.
&gt; +  ssize_t NextGenomeId() const { return aNextGenomeId; }
&gt; +
&gt; +  // Get species number.
&gt; +  ssize_t NumSpecies() const { return aSpecies.size(); }
&gt; +
&gt; +  // Get population size.
&gt; +  ssize_t PopulationSize() const {
&gt; +    ssize_t populationSize = 0;
&gt; +    for (ssize_t i=0; i&lt;aSpecies.size(); ++i) {
&gt; +      populationSize += aSpecies[i].aGenomes.size();
&gt; +    }
&gt; +  }
</pre>
<p>The method returns with an error if we don't return the <code>populationSize</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/686/files/66b0f4171ab0c6810cf3058e653e48d18c4913be#r71089723">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFLeZahZeZlsDMaSaO6k2qMhqBE3Rks5qWpv5gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFAbekSe_ETnBv_Ks-nTgBeBksZLlks5qWpv5gaJpZM4IwJa6.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/686/files/66b0f4171ab0c6810cf3058e653e48d18c4913be#r71089723"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>