CppAD: A C++ Algorithmic Differentiation Package
20171217
|
#define CPPAD_STANDARD_MATH_UNARY_AD | ( | Name, | |
Op | |||
) |
Defines function Name with argument type AD<Base> and tape operation Op.
The macro defines the function x.Name() where x has type AD<Base>. It then uses this funciton to define Name(x) where x has type AD<Base> or VecAD_reference<Base>.
If x is a variable, the tape unary operator Op is used to record the operation and the result is identified as correspoding to this operation; i.e., Name(x).taddr_ idendifies the operation and Name(x).tape_id_ identifies the tape.
This macro is used to define AD<Base> versions of acos, asin, atan, cos, cosh, exp, fabs, log, sin, sinh, sqrt, tan, tanh.
Definition at line 492 of file std_math_98.hpp.