[mlpack-git] [mlpack] static assertion failed: HRectBound can only be used with the LMetric<> metric type. (#525)

Ryan Curtin notifications at github.com
Fri Feb 26 09:03:11 EST 2016


It looks like you're using an old version of the tutorial... is there a link somewhere on mlpack.org that went to that page?  (There shouldn't be, so if there is, I'll fix it.)

Take a look at the most recent version of the tutorial instead:
http://www.mlpack.org/docs/mlpack-2.0.1/doxygen.php?doc=rstutorial.html

The `RangeSearch` class should be used like this (now it uses template template parameters):

```
RangeSearch<LMetric<2, true>, arma::mat, tree::KDTree> rs;
```

I'm not sure why the `static_assert` is triggering.  What version of mlpack are you using?

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/525#issuecomment-189290599
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160226/d530dd91/attachment.html>


More information about the mlpack-git mailing list