CppAD: A C++ Algorithmic Differentiation Package 20110419
discrete< Base > Class Template Reference

List of all members.

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 uer 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

Detailed Description

template<class Base>
class discrete< Base >

Definition at line 187 of file discrete.hpp.


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