5 #ifndef __pinocchio_autodiff_casadi_utils_static_if_hpp__ 6 #define __pinocchio_autodiff_casadi_utils_static_if_hpp__ 8 #include "pinocchio/utils/static-if.hpp" 15 template<
typename Scalar,
typename ThenType,
typename ElseType>
16 struct if_then_else_impl<::casadi::Matrix<Scalar>,::casadi::Matrix<Scalar>,ThenType,ElseType>
23 const CasadiType & lhs_value,
24 const CasadiType & rhs_value,
25 const ThenType & then_value,
26 const ElseType & else_value)
31 return ::casadi::Matrix<Scalar>::if_else(lhs_value < rhs_value,then_value,else_value);
34 return ::casadi::Matrix<Scalar>::if_else(lhs_value <= rhs_value,then_value,else_value);
37 return ::casadi::Matrix<Scalar>::if_else(lhs_value == rhs_value,then_value,else_value);
40 return ::casadi::Matrix<Scalar>::if_else(lhs_value >= rhs_value,then_value,else_value);
43 return ::casadi::Matrix<Scalar>::if_else(lhs_value > rhs_value,then_value,else_value);
51 #endif // ifndef __pinocchio_autodiff_casadi_utils_static_if_hpp__ ::casadi::Matrix< Scalar > CasadiType
internal::traits< if_then_else_impl >::ReturnType ReturnType
static ReturnType run(const ComparisonOperators op, const CasadiType &lhs_value, const CasadiType &rhs_value, const ThenType &then_value, const ElseType &else_value)
Main pinocchio namespace.