<p>In <a href="https://github.com/mlpack/mlpack/pull/664#discussion_r65641033">src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value.hpp</a>:</p>
<pre style='color:#555'>> + * @param val The Hilbert value to compare with.
> + */
> + template<typename TreeType>
> + int CompareWith(TreeType *tree, DiscreteHilbertValue &val);
> +
> + /**
> + * Compare the largest Hilbert value of the node with the Hilbert value
> + * of the point. It returns 1 if the value of the node is greater than
> + * the value of the point, -1 if the value of the node is less than
> + * the value of the point and 0 if the values are equal.
> + * This method computes the Hilbert value of the point.
> + * @param tree Not used
> + * @param val The point to compare with.
> + */
> + template<typename TreeType,typename ElemType>
> + int CompareWith(TreeType *tree, const arma::Col<ElemType> &pt);
</pre>
<p>I think all the overloads of <code>CompareWith()</code> can be marked <code>const</code>.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/664/files/ab890dff6b4b617b5309af53950c6cac97d994d6#r65641033">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFNqoClqKihd7MXCKHu89Y8qCphQ1ks5qH3O2gaJpZM4IrlzT">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNK5sgmyZb2CdCM-a9SQYOHYER2rks5qH3O2gaJpZM4IrlzT.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/664/files/ab890dff6b4b617b5309af53950c6cac97d994d6#r65641033"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>