Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
f10534a7
Commit
f10534a7
authored
Oct 21, 2020
by
Gabriele Buondonno
Browse files
[isNormalize] Replace std::abs with using std::abs
parent
00a9853b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/multibody/liegroup/special-euclidean.hpp
View file @
f10534a7
...
...
@@ -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
>
...
...
src/multibody/liegroup/special-orthogonal.hpp
View file @
f10534a7
...
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment