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

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


> @@ -137,6 +139,7 @@ int main(int argc, char *argv[])
>    const size_t numProj = CLI::GetParam<int>("projections");
>    const size_t numTables = CLI::GetParam<int>("tables");
>    const double hashWidth = CLI::GetParam<double>("hash_width");
> +  const size_t numProbes = CLI::GetParam<int>("num_probes");

Do you need to do an explicit cast here to avoid a warning?  I am not sure, I think it depends on the compiler, but usually I will do something like `(size_t) CLI::GetParam<int>("num_probes");`.

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


More information about the mlpack-git mailing list