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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines