CppAD: A C++ Algorithmic Differentiation Package
20130918
|
#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 184 of file discrete.hpp.