CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
#define CPPAD_FOLD_BOOL_VALUED_BINARY_OPERATOR (   Op)

Declares automatic coercion for certain binary operations with bool result.

This macro assumes that the operator

     left Op right

is defined for the case where left and right have type AD<Base> and the result has type bool. It uses this case to define the cases either left or right has type VecAD_reference<Base> or AD<Base> and the type of the other operand is one of the following: VecAD_reference<Base>, AD<Base>, Base, double. All of the arguments are const and call by reference. This macro converts the operands to AD<Base> and then uses the definition of the same operation for that case.

Definition at line 227 of file define.hpp.