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

Ryan Curtin notifications at github.com
Mon Jun 27 16:03:49 EDT 2016


>    for (size_t i = 0; i < numTablesToSearch; i++)
> -    //allProjInTables.unsafe_col(i) = projections[i].t() * queryPoint;
> -    allProjInTables.unsafe_col(i) = projections.slice(i).t() * queryPoint;
> -  allProjInTables += offsets.cols(0, numTablesToSearch - 1);
> -  allProjInTables /= hashWidth;
> -
> -  // Compute the hash value of each key of the query into a bucket of the
> -  // 'secondHashTable' using the 'secondHashWeights'.
> -  arma::rowvec hashVec = secondHashWeights.t() * arma::floor(allProjInTables);
> +    queryCodesNotFloored.unsafe_col(i) = projections.slice(i).t() * queryPoint;
> +  queryCodesNotFloored += offsets.cols(0, numTablesToSearch - 1);
> +  allProjInTables = arma::floor(queryCodesNotFloored/hashWidth);

We should put a space on either side of the division operator `/`.

---
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/71eda99e207a9b91581504e11a9e14d38838bc9f#r68645598
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160627/2c47dd95/attachment.html>


More information about the mlpack-git mailing list