<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'>>
> using namespace std;
> using namespace mlpack;
> using namespace mlpack::neighbor;
>
> +double compute_recall(
> + arma::Mat<size_t> LSHneighbors,
> + arma::Mat<size_t> groundTruth)
> +{
> + const int n_queries = LSHneighbors.n_cols;
> + const int n_neigh = LSHneighbors.n_rows;
> +
> + int found_same = 0;
> + for (int q = 0; q < n_queries; ++q)
> + {
> + for (int n = 0; n < 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;">—<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>