Skip to content
Snippets Groups Projects
Commit 3ba97047 authored by Tom Fischer's avatar Tom Fischer
Browse files

[MaL] std::fabs -> std::abs.

parent d8153ade
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ bool PiecewiseLinearMonotonicCurve::isStrongMonotonic() const
{
const double gradient0 = getDerivative(_supp_pnts[0]);
if (std::fabs(gradient0) < std::numeric_limits<double>::min())
if (std::abs(gradient0) < std::numeric_limits<double>::min())
{
return false;
}
......
......@@ -112,7 +112,7 @@ public:
}
//! Returns the size of the current search interval.
double getRange() const { return std::fabs(_a - _b); }
double getRange() const { return std::abs(_a - _b); }
private:
Function const& _f;
......
......@@ -155,8 +155,8 @@ bool lessEq(TemplatePoint<T, DIM> const& a, TemplatePoint<T, DIM> const& b,
{
auto coordinateIsLargerEps = [&eps](T const u, T const v) -> bool
{
return std::fabs(u - v) > eps * std::min(std::fabs(v), std::fabs(u)) &&
std::fabs(u - v) > eps;
return std::abs(u - v) > eps * std::min(std::abs(v), std::abs(u)) &&
std::abs(u - v) > eps;
};
for (std::size_t i = 0; i < DIM; ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment