<p>You're welcome. I'll try to incorporate the changes you suggested along with the tests for these functions and file an updated PR as soon as possible. Thank You for your analysis. :)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<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/683#issuecomment-224977280">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFJKvwMj_bQFlTd2Pyq8S3PKz1iGHks5qKFUhgaJpZM4IvUrl">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFHyls45GUKTv4jUG6_EeSXJFJfttks5qKFUhgaJpZM4IvUrl.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/683#issuecomment-224977280"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>