Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ ADD_MIXED_AUTODIFF_SCALAR_COMPARISON

#define ADD_MIXED_AUTODIFF_SCALAR_COMPARISON (   OPERATOR,
  OP 
)
Value:
template <typename T_a, typename T_b, \
require_any_eigen_t<T_a, T_b>* = nullptr, \
require_any_st_autodiff<T_a, T_b>* = nullptr, \
require_not_st_same<T_a, T_b>* = nullptr> \
auto OPERATOR(const T_a& a, const T_b& b) { \
return value_of(a) OP value_of(b); \
}

Add support for comparisons involving Eigen types with different scalars, where one of the scalars is an autodiff type.

This includes comparisons of an Eigen type and a scalar.

Parameters
OPERATORname of the operator function to implement
OPoperator to use for comparison of values

Definition at line 18 of file eigen_comparisons.hpp.