5 #ifndef __pinocchio_autodiff_cppad_utils_static_if_hpp__ 6 #define __pinocchio_autodiff_cppad_utils_static_if_hpp__ 8 #include "pinocchio/utils/static-if.hpp" 14 template<
typename Scalar,
typename ThenType,
typename ElseType>
20 const CppAD::AD<Scalar> & lhs_value,
21 const CppAD::AD<Scalar> & rhs_value,
22 const ThenType & then_value,
23 const ElseType & else_value)
28 return ::CppAD::CondExpLt<Scalar>(lhs_value,rhs_value,
29 then_value,else_value);
31 return ::CppAD::CondExpLe<Scalar>(lhs_value,rhs_value,
32 then_value,else_value);
34 return ::CppAD::CondExpEq<Scalar>(lhs_value,rhs_value,
35 then_value,else_value);
37 return ::CppAD::CondExpGe<Scalar>(lhs_value,rhs_value,
38 then_value,else_value);
40 return ::CppAD::CondExpGt<Scalar>(lhs_value,rhs_value,
41 then_value,else_value);
48 #endif // ifndef __pinocchio_autodiff_cppad_utils_static_if_hpp__
static ReturnType run(const ComparisonOperators op, const CppAD::AD< Scalar > &lhs_value, const CppAD::AD< Scalar > &rhs_value, const ThenType &then_value, const ElseType &else_value)
internal::traits< if_then_else_impl >::ReturnType ReturnType
Main pinocchio namespace.