<p>In <a href="https://github.com/mlpack/mlpack/pull/657#discussion_r65107629">src/mlpack/methods/lsh/lsh_search_impl.hpp</a>:</p>
<pre style='color:#555'>> +
> +
> +// Compute additional probing bins for a query
> +template<typename SortPolicy>
> +void LSHSearch<SortPolicy>::GetAdditionalProbingBins(
> + const arma::vec &queryCode,
> + const arma::vec &queryCodeNotFloored,
> + const size_t T,
> + arma::mat &additionalProbingBins) const
> +{
> +
> + if (T == 0)
> + return;
> +
> + // Each column of additionalProbingBins is the code of a bin.
> + additionalProbingBins.zeros(numProj, T);
</pre>
<p>.set_size() will avoid the time to set everything to zero, which will be useful here since you are setting the columns in the for loop below this call.</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/657/files/2eb6163c90e8e19566784cf960d38d82691221e1#r65107629">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFB6BzAW9gLKa6fMl7c5-ny2pfCENks5qG1sLgaJpZM4IpUVp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDLlqELSXNhInVTRtfWmjUNFRF4Gks5qG1sLgaJpZM4IpUVp.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/657/files/2eb6163c90e8e19566784cf960d38d82691221e1#r65107629"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>