<p>Yes, I agree with <a href="https://github.com/stereomatchingkiss" class="user-mention">@stereomatchingkiss</a> . My intention was not to disturb you with the subtleties like this, but to understand what was going on. Yet, if your style guide is not strictly against the use of C++11 or above, you might consider using <a href="http://en.cppreference.com/w/cpp/numeric/math/isnan"><code>bool std::isnan( double arg )</code></a> or <a href="http://en.cppreference.com/w/cpp/numeric/math/isinf"><code>bool std::isinf(double arg)</code></a>, both from the <code>#include &lt;cmath&gt;</code> library. That would make the code easier to read and more robust against compiler-dependent implementation issues. Thanks for the discussion!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/461#issuecomment-149155464">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIUZ04OLxkreg7voTax0BedT_YRpks5o9K2ZgaJpZM4GNy_s.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/issues/461#issuecomment-149155464"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>