<p>In <a href="https://github.com/mlpack/mlpack/pull/691#discussion_r67988389">src/mlpack/methods/lsh/lsh_search_impl.hpp</a>:</p>
<pre style='color:#555'>> + {
> + if ( minscore2 > scores[s] && s != minloc) //second smallest
> + {
> + minscore2 = scores[s];
> + minloc2 = s;
> + }
> + }
> +
> + // add or subtract 1 to create second-lowest scoring vector
> + additionalProbingBins(positions[minloc2], 1) += actions[minloc2];
> + return;
> +
> + }
> +
> + // sort everything in increasing order
> + arma::Col<long long unsigned int> sortidx = arma::sort_index(scores);
</pre>
<p>Why <code>long long unsigned int</code>? Either <code>size_t</code> or possibly <code>arma::uword</code> (I prefer the former but sometimes it is not possible) should work here.</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, <a href="https://github.com/mlpack/mlpack/pull/691/files/fa7f62da6a4cfe7fa45e297d7a4a1491c9c39bb1#r67988389">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFDUnirjvMSoLfIcu0pkf2sTbwIPJks5qOKbBgaJpZM4IxQW5">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFEboefTqpuCWO0ZTUX-hl2NMqr2ks5qOKbBgaJpZM4IxQW5.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/691/files/fa7f62da6a4cfe7fa45e297d7a4a1491c9c39bb1#r67988389"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>