Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
math
sign.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2020 INRIA
3
//
4
5
#ifndef __pinocchio_math_sign_hpp__
6
#define __pinocchio_math_sign_hpp__
7
8
namespace
pinocchio
9
{
13
template
<
typename
Scalar>
14
Scalar
sign
(
const
Scalar
&
t
)
15
{
16
return
(t >
Scalar
(0)) - (t <
Scalar
(0));
17
}
18
}
19
20
#endif //#ifndef __pinocchio_math_sign_hpp__
pinocchio::sign
Scalar sign(const Scalar &t)
Returns the robust sign of t.
Definition:
sign.hpp:14
pinocchio::python::Scalar
SE3::Scalar Scalar
Definition:
conversions.cpp:13
pinocchio
Main pinocchio namespace.
Definition:
timings.cpp:30
simulation-pendulum.t
int t
Definition:
simulation-pendulum.py:125
pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:04