CppAD: A C++ Algorithmic Differentiation Package
20130102
|
Public Member Functions | |
discrete (const char *Name, F f) | |
Constructor called for each invocation of CPPAD_DISCRETE_FUNCTION. | |
AD< Base > | ad (const AD< Base > &ax) const |
Implement the user call to ay = name(ax) . | |
Static Public Member Functions | |
static const char * | name (size_t index) |
Name corresponding to a discrete object. | |
static Base | eval (size_t index, const Base &x) |
Link from forward mode sweep to users routine. | |
Private Types | |
typedef Base(* | F )(const Base &x) |
type for the user routine that computes function values | |
Static Private Member Functions | |
static std::vector< discrete * > & | List (void) |
List of all objects in this class. | |
Private Attributes | |
const std::string | name_ |
name of this user defined function | |
const F | f_ |
user's implementation of the function for Base operations | |
const size_t | index_ |
index of this objec in the vector of all objects for this class | |
Friends | |
template<class Type > | |
void | parallel_ad (void) |
parallel_ad needs to call List to initialize static |
Definition at line 203 of file discrete.hpp.