ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Attributes | List of all members
tiny_ad::variable< order, nvar, Double > Struct Template Reference

#include <tiny_ad.hpp>

Public Types

typedef ad< VARIABLE(order-1,
nvar, Double), TINY_VECTOR(VARIABLE(order-1,
nvar, Double), nvar) > 
Base
 
typedef variable< order-1,
nvar, Double > 
Type
 

Public Member Functions

 variable ()
 
 variable (Base x)
 
 variable (double x)
 
 variable (double x, int id)
 
template<class Constant >
 variable (Constant x)
 
template<class Constant >
 variable (Constant x, int id)
 
void setid (int i0, int count=0)
 
 TINY_VECTOR (Double, result_size) getDeriv()
 
- Public Member Functions inherited from tiny_ad::ad< VARIABLE(order-1, nvar, Double), TINY_VECTOR(VARIABLE(order-1, nvar, Double), nvar) >
 ad ()
 
 ad (VARIABLE(order-1, nvar, Double)v, TINY_VECTOR(VARIABLE(order-1, nvar, Double), nvar)d)
 
 ad (double v)
 
ad operator* (const ad &other) const
 
ad operator* (const double &x) const
 
adoperator*= (const ad &other)
 
ad operator+ (const ad &other) const
 
ad operator+ () const
 
ad operator+ (const double &x) const
 
adoperator+= (const ad &other)
 
ad operator- (const ad &other) const
 
ad operator- () const
 
ad operator- (const double &x) const
 
adoperator-= (const ad &other)
 
ad operator/ (const ad &other) const
 
ad operator/ (const double &x) const
 
adoperator/= (const ad &other)
 

Static Public Attributes

static const int result_size = nvar * Type::result_size
 

Additional Inherited Members

- Public Attributes inherited from tiny_ad::ad< VARIABLE(order-1, nvar, Double), TINY_VECTOR(VARIABLE(order-1, nvar, Double), nvar) >
TINY_VECTOR(VARIABLE(order-1,
nvar, Double), nvar) 
deriv
 
VARIABLE(order-1, nvar, Double) value
 

Detailed Description

template<int order, int nvar, class Double = double>
struct tiny_ad::variable< order, nvar, Double >

Definition at line 265 of file tiny_ad.hpp.

Member Typedef Documentation

template<int order, int nvar, class Double = double>
typedef ad< VARIABLE(order-1, nvar, Double), TINY_VECTOR(VARIABLE(order-1, nvar, Double), nvar) > tiny_ad::variable< order, nvar, Double >::Base

Definition at line 268 of file tiny_ad.hpp.

template<int order, int nvar, class Double = double>
typedef variable<order-1, nvar, Double> tiny_ad::variable< order, nvar, Double >::Type

Definition at line 269 of file tiny_ad.hpp.

Constructor & Destructor Documentation

template<int order, int nvar, class Double = double>
tiny_ad::variable< order, nvar, Double >::variable ( void  )
inline

Definition at line 271 of file tiny_ad.hpp.

template<int order, int nvar, class Double = double>
tiny_ad::variable< order, nvar, Double >::variable ( Base  x)
inline

Definition at line 272 of file tiny_ad.hpp.

template<int order, int nvar, class Double = double>
tiny_ad::variable< order, nvar, Double >::variable ( double  x)
inline

Definition at line 273 of file tiny_ad.hpp.

template<int order, int nvar, class Double = double>
tiny_ad::variable< order, nvar, Double >::variable ( double  x,
int  id 
)
inline

Definition at line 274 of file tiny_ad.hpp.

template<int order, int nvar, class Double = double>
template<class Constant >
tiny_ad::variable< order, nvar, Double >::variable ( Constant  x)
inline

Definition at line 278 of file tiny_ad.hpp.

template<int order, int nvar, class Double = double>
template<class Constant >
tiny_ad::variable< order, nvar, Double >::variable ( Constant  x,
int  id 
)
inline

Definition at line 282 of file tiny_ad.hpp.

Member Function Documentation

template<int order, int nvar, class Double = double>
void tiny_ad::variable< order, nvar, Double >::setid ( int  i0,
int  count = 0 
)
inline
template<int order, int nvar, class Double = double>
tiny_ad::variable< order, nvar, Double >::TINY_VECTOR ( Double  ,
result_size   
)
inline

Definition at line 290 of file tiny_ad.hpp.

Member Data Documentation

template<int order, int nvar, class Double = double>
const int tiny_ad::variable< order, nvar, Double >::result_size = nvar * Type::result_size
static

Definition at line 270 of file tiny_ad.hpp.

Referenced by tiny_ad::variable< order, nvar, Double >::TINY_VECTOR().


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