CppAD: A C++ Algorithmic Differentiation Package 20110419
#define CPPAD_COND_EXP (   Name,
  Op,
  Type 
)
Value:
inline Type CondExp##Name(                                  \
                const Type &left      ,                             \
                const Type &right     ,                             \
                const Type &exp_if_true  ,                             \
                const Type &exp_if_false )                             \
        {       Type returnValue;                                   \
                if( left Op right )                                 \
                        returnValue = exp_if_true;                     \
                else    returnValue = exp_if_false;                    \
                return returnValue;                                 \
        }

Definition at line 421 of file cond_exp.hpp.