CppAD: A C++ Algorithmic Differentiation Package 20110419
#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);                                 \
}

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 170 of file discrete.hpp.