CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CppAD::discrete< Base > Class Template Reference

Public Member Functions

AD< Base > ad (const AD< Base > &ax) const
 Implement the user call to ay = name(ax). More...
 discrete (const char *Name, F f)
 Constructor called for each invocation of CPPAD_DISCRETE_FUNCTION. More...

Static Public Member Functions

static Base eval (size_t index, const Base &x)
 Link from forward mode sweep to users routine. More...
static const char * name (size_t index)
 Name corresponding to a discrete object. More...

Private Types

typedef Base(* F )(const Base &x)
 type for the user routine that computes function values More...

Static Private Member Functions

static std::vector< discrete * > & List (void)
 List of all objects in this class. More...

Private Attributes

const F f_
 user's implementation of the function for Base operations More...
const size_t index_
 index of this objec in the vector of all objects for this class More...
const std::string name_
 name of this user defined function More...


template<class Type >
void parallel_ad (void)
 parallel_ad needs to call List to initialize static More...

Detailed Description

template<class Base>
class CppAD::discrete< Base >

Definition at line 194 of file discrete.hpp.

The documentation for this class was generated from the following file: