Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
+
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
x
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
Related Functions
+
Files
File List
+
File Members
+
All
c
d
g
n
o
r
s
Functions
+
Macros
c
d
n
r
include
cras_cpp_common
math_utils.hpp
Go to the documentation of this file.
1
#pragma once
2
17
template
<
typename
T>
inline
int
sgn
(T val) {
18
return
(T(0) < val) - (val < T(0));
19
}
sgn
int sgn(T val)
Return the sign of the given value (-1, 0 or +1).
Definition:
math_utils.hpp:17
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Jun 17 2023 02:32:53