<p>In <a href="https://github.com/mlpack/mlpack/pull/605#discussion_r58574213">src/mlpack/tests/lsh_test.cpp</a>:</p>
<pre style='color:#555'>&gt;  
&gt;  using namespace std;
&gt;  using namespace mlpack;
&gt;  using namespace mlpack::neighbor;
&gt;  
&gt; +double compute_recall(
&gt; +    arma::Mat&lt;size_t&gt; LSHneighbors, 
&gt; +    arma::Mat&lt;size_t&gt; groundTruth)
&gt; +{
&gt; +  const int n_queries = LSHneighbors.n_cols;
&gt; +  const int n_neigh = LSHneighbors.n_rows;
&gt; +
&gt; +  int found_same = 0;
&gt; +  for (int q = 0; q &lt; n_queries; ++q)
&gt; +  {
&gt; +    for (int n = 0; n &lt; n_neigh; ++n)
</pre>
<p>Another minor note: maybe better to use <code>size_t</code> here since these will never take negative values?</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 or <a href="https://github.com/mlpack/mlpack/pull/605/files/b0e5d740b4835ef4f65320d0dced2930a584bf53#r58574213">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFAQTXF6tDfrsOgAmLmC2I05REi1vks5p0pNcgaJpZM4H_9Kw.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/605/files/b0e5d740b4835ef4f65320d0dced2930a584bf53#r58574213"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>