[mlpack-git] [mlpack/mlpack] BUG: Misplaced parenthesis in comparison of absolute values (#628)

ajjl notifications at github.com
Thu Apr 21 18:01:23 EDT 2016

The misplaced parenthesis around the comparison of the absolute
values of bandwidth and distance could cause erronus results. In
addition, this caused a "-Wabsolute-value" warning:

warning: taking the absolute value of unsigned type 'bool' has no effect [-Wabsolute-value]
  } else if (std::abs(bandwidth > std::abs(distance)))
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * BUG: Misplaced parenthesis in comparison of absolute values

-- File Changes --

    M src/mlpack/core/kernels/epanechnikov_kernel.cpp (2)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160421/9f38b23a/attachment.html>

More information about the mlpack-git mailing list