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

Yannis Mentekidis notifications at github.com
Wed Jun 22 10:15:31 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;

**On your first point:** I wondered too when I first saw this - I thought it had something to do with operator precedence but [typecasting precedes modding](http://en.cppreference.com/w/c/language/operator_precedence), so I'm fixing that.

**On your second point:** In the beginning I started doing it like that to avoid the copy, but the armadillo spans confused me so I went around it. I'll try to find a way to do it the way you say.

---
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#r68060454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160622/014161e3/attachment-0001.html>


More information about the mlpack-git mailing list