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

Ryan Curtin notifications at github.com
Tue Jun 21 23:06:41 EDT 2016


> +    {
> +      if ( minscore2 > scores[s] && s != minloc) //second smallest
> +      {
> +        minscore2 = scores[s];
> +        minloc2 = s;
> +      }
> +    }
> +
> +    // add or subtract 1 to create second-lowest scoring vector
> +    additionalProbingBins(positions[minloc2], 1) += actions[minloc2];
> +    return;
> +    
> +  }
> +
> +  // sort everything in increasing order
> +  arma::Col<long long unsigned int> sortidx = arma::sort_index(scores);

Why `long long unsigned int`?  Either `size_t` or possibly `arma::uword` (I prefer the former but sometimes it is not possible) should work here.

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


More information about the mlpack-git mailing list