[mlpack-git] [mlpack/mlpack] Implementation of Multiprobe LSH (#691)

Yannis Mentekidis notifications at github.com
Wed Jun 22 10:18:18 EDT 2016


>    for (size_t i = 0; i < hashVec.n_elem; i++)
>      hashVec[i] = (double) ((size_t) hashVec[i] % secondHashSize);
>  
>    Log::Assert(hashVec.n_elem == numTablesToSearch);
>  
> +  // Compute hashVectors of additional probing bins
> +  arma::mat hashMat;
> +  if (T > 0)
> +  {
> +    hashMat.zeros(T, numTablesToSearch);

If I concatenate a (T x numTablesToSearch) matrix with a (1 x numTablesToSearch) vector, won't I get a T+1 row matrix? 

I understood from armadillo documnetation that `join_vert` resizes hashMat. Am I throwing the last vector away like that?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/691/files/fa7f62da6a4cfe7fa45e297d7a4a1491c9c39bb1#r68061002
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160622/0aee8f7b/attachment.html>


More information about the mlpack-git mailing list