| CppAD: A C++ Algorithmic Differentiation Package
    20171217
    | 
| ResultType CppAD::CondExpTemplate | ( | enum CompareOp | cop, | 
| const CompareType & | left, | ||
| const CompareType & | right, | ||
| const ResultType & | exp_if_true, | ||
| const ResultType & | exp_if_false | ||
| ) | 
Template function to implement Conditional Expressions for simple types that have comparision operators.
| CompareType | is the type of the left and right operands to the comparision operator. | 
| ResultType | is the type of the result, which is the same as CompareTypeexcept during forward and reverse mode sparese calculations. | 
| cop | specifices which comparision to use; i.e., $code <$$, $code <=$$, $code ==$$, $code >=$$, $code >$$, or $code !=$$. | 
| left | is the left operand to the comparision operator. | 
| right | is the right operand to the comparision operator. | 
| exp_if_true | is the return value is the comparision results in true. | 
| exp_if_false | is the return value is the comparision results in false. | 
exp_if_true and exp_if_false above. Definition at line 234 of file base_cond_exp.hpp.
Referenced by CondExpOp().