forward automatic differentiation variable with dynamic variable array More...
Public Member Functions | |
AD () | |
default constructor | |
AD (double val) | |
constructs from a double | |
template<class B > | |
AD (AD< B, 0 > const &other) | |
constructs from other AD | |
double & | val () |
get the value of the variable (mutable) | |
const double & | val () const |
get the value of the variable (immutable) | |
T & | dx (unsigned int i) |
get the ith derivative value (mutable) | |
const T | dx (unsigned int i) const |
get the ith deriative value (immutable) | |
operator double () const | |
type conversion from AD to double | |
AD< T, 0 > & | operator= (double other) |
assignment to a double | |
template<class B > | |
AD< T, 0 > & | operator= (AD< B, 0 > const &other) |
assignment to another AD variable | |
AD< T, 0 > & | operator+= (double other) |
addition assignment with a double | |
AD< T, 0 > & | operator+= (AD< T, 0 > const &other) |
addition assignment with another AD variable | |
AD< T, 0 > & | operator-= (double other) |
subtraction assignment with a double | |
AD< T, 0 > & | operator-= (AD< T, 0 > const &other) |
subtraction assignment with another AD variable | |
AD< T, 0 > & | operator*= (double other) |
multiplication assignment with a double | |
AD< T, 0 > & | operator*= (AD< T, 0 > const &other) |
multiplication assignment with another AD variable | |
AD< T, 0 > & | operator/= (double other) |
division assignment with a double | |
AD< T, 0 > & | operator/= (AD< T, 0 > const &other) |
division assignment with another AD variable | |
Public Attributes | |
double | x_ |
the variable value | |
can::Array< T > | dx_ |
the dynamic derivative array |
forward automatic differentiation variable with dynamic variable array
Definition at line 153 of file mthAD.h.