CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
#define CPPAD_DISCRETE_FUNCTION (   Base,
  name 
)
Value:
inline CppAD::AD<Base> name (const CppAD::AD<Base>& ax) \
{ \
static CppAD::discrete<Base> fun(#name, name); \
\
return fun.ad(ax); \
}
Definition: ad.hpp:34

Defines the function name(ax, ay) where ax and ay are vectors with AD<Base> elements.

Base
is the base type for the discrete function.
name
is the name of the user defined function that corresponding to this operation.

Definition at line 177 of file discrete.hpp.