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

Ryan Curtin notifications at github.com
Mon Jun 27 15:58:15 EDT 2016


> +  actions.rows(numProj, (2 * numProj) - 1) = // last numProj rows
> +    arma::ones< arma::Col<short int> > (numProj); // 1s
> +
> +
> +  // Acting dimension vector shows which coordinate to transform according to
> +  // actions described by actions vector
> +  arma::Col<size_t> positions(2 * numProj); // will be [0 1 2 ... 0 1 2 ...]
> +  positions.rows(0, numProj - 1) =
> +    arma::linspace< arma::Col<size_t> >(0, numProj - 1, numProj);
> +  positions.rows(numProj, 2 * numProj - 1) =
> +    arma::linspace< arma::Col<size_t> >(0, numProj - 1, numProj);
> +
> +  // Special case: No need to create heap for 1 or 2 codes.
> +  if (T <= 2)
> +  {
> +

Extra line

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


More information about the mlpack-git mailing list