CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
#define CPPAD_COND_EXP_BASE_REL (   Type,
  Rel,
  Op 
)
Value:
inline Type CondExp##Rel( \
const Type& left , \
const Type& right , \
const Type& exp_if_true , \
const Type& exp_if_false ) \
{ return CondExpOp(Op, left, right, exp_if_true, exp_if_false); \
}
CPPAD_INLINE_FRIEND_TEMPLATE_FUNCTION AD< Base > CondExp(const AD< Base > &flag, const AD< Base > &if_true, const AD< Base > &if_false)
Definition: cond_exp.hpp:343
std::complex< double > CondExpOp(enum CppAD::CompareOp cop, const std::complex< double > &left, const std::complex< double > &right, const std::complex< double > &trueCase, const std::complex< double > &falseCase)

This macro defines the operation.

     CondExpRel(left, right, exp_if_true, exp_if_false)

The argument Type is the Base type for this base require operation. The argument Rel is one of Lt, Le, Eq, Ge, Gt. The argument Op is the corresponding CompareOp value.

Definition at line 170 of file base_cond_exp.hpp.