Commit f10534a7 authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

[isNormalize] Replace std::abs with using std::abs

parent 00a9853b
......@@ -435,7 +435,8 @@ namespace pinocchio
const Scalar& prec)
{
const Scalar norm = Scalar(qin.template tail<2>().norm());
return (std::abs(norm - Scalar(1.0)) < prec );
using std::abs;
return abs(norm - Scalar(1.0)) < prec;
}
template <class Config_t>
......@@ -796,7 +797,8 @@ namespace pinocchio
const Scalar& prec)
{
Scalar norm = Scalar(qin.template tail<4>().norm());
return (std::abs(norm - Scalar(1.0)) < prec );
using std::abs;
return abs(norm - Scalar(1.0)) < prec;
}
template <class Config_t>
......
......@@ -310,7 +310,8 @@ namespace pinocchio
const Scalar& prec)
{
const Scalar norm = qin.norm();
return (std::abs(norm - Scalar(1.0)) < prec );
using std::abs;
return abs(norm - Scalar(1.0)) < prec;
}
template <class Config_t>
......@@ -587,7 +588,8 @@ namespace pinocchio
const Scalar& prec)
{
const Scalar norm = qin.norm();
return (std::abs(norm - Scalar(1.0)) < prec );
using std::abs;
return abs(norm - Scalar(1.0)) < prec;
}
template <class Config_t>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment