|
CppAD: A C++ Algorithmic Differentiation Package
20130102
|
| #define CPPAD_DISCRETE_FUNCTION | ( | Base, | |
| name | |||
| ) |
inline CppAD::AD<Base> name (const CppAD::AD<Base>& ax) \ { \ static CppAD::discrete<Base> fun(#name, name); \ \ return fun.ad(ax); \ }
Defines the function name(ax, ay) where ax and ay are vectors with AD<Base> elements.
Definition at line 186 of file discrete.hpp.