CppAD: A C++ Algorithmic Differentiation Package
20130918
|
#define CPPAD_VEC_AD_COMPUTED_ASSIGNMENT | ( | op, | |
name | |||
) |
VecAD_reference& operator op (const VecAD_reference<Base> &right) \ { CPPAD_ASSERT_KNOWN( \ false, \ "Cannot use a ADVec element on left side of" name \ ); \ return *this; \ } \ VecAD_reference& operator op (const AD<Base> &right) \ { CPPAD_ASSERT_KNOWN( \ false, \ "Cannot use a ADVec element on left side of" name \ ); \ return *this; \ } \ VecAD_reference& operator op (const Base &right) \ { CPPAD_ASSERT_KNOWN( \ false, \ "Cannot use a ADVec element on left side of" name \ ); \ return *this; \ }
Prints an error message if the correspinding computed assignment is used.
THis macro is used to print an error message if any of the computed assignments are used with the VecAD_reference class. The argument op
is one of the following: += , -= , *= , /=. The argument name
, is a string literal with the name of the computed assignment op
.
Definition at line 328 of file vec_ad.hpp.