[mlpack-git] [mlpack/mlpack] Removed RectangleTree::Points() (#709)

Ryan Curtin notifications at github.com
Tue Jun 28 16:35:48 EDT 2016


> @@ -424,7 +419,10 @@ class RectangleTree
>     *
>     * @param index Index of point for which a dataset index is wanted.
>     */
> -  size_t Point(const size_t index) const;
> +  const size_t& Point(const size_t index) const { return points[index]; }

I don't think there's any reason to return a reference here, since that is the same size as a size_t, so I'll go ahead and change this back after merge unless there is a reason I shouldn't that I am not aware of.

---
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/709/files/707efdc2a6e1fec461942cfa81323ea232f3427d#r68837832
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160628/de7ac19b/attachment-0001.html>


More information about the mlpack-git mailing list