<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'>&gt; +
&gt; +
&gt; +// Compute additional probing bins for a query
&gt; +template&lt;typename SortPolicy&gt;
&gt; +void LSHSearch&lt;SortPolicy&gt;::GetAdditionalProbingBins(
&gt; +                            const arma::vec &amp;queryCode,
&gt; +                            const arma::vec &amp;queryCodeNotFloored,
&gt; +                            const size_t T,
&gt; +                            arma::mat &amp;additionalProbingBins) const
&gt; +{
&gt; +
&gt; +  if (T == 0)
&gt; +    return;
&gt; +
&gt; +  // Each column of additionalProbingBins is the code of a bin.
&gt; +  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;">&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/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>