In file autodiff.hpp:template<int D, typename SCAL = double> class AutoDiff
Datatype for automatic differentiation.
Documentation
Datatype for automatic differentiation.
Contains function value and D derivatives. Algebraic
operations are overloaded by using product-rule etc. etc.
Public Methods
-
AutoDiff() throw()
- elements are undefined
-
AutoDiff(const AutoDiff & ad2) throw()
- copy constructor
-
AutoDiff(SCAL aval) throw()
- initial object with constant value
-
AutoDiff(SCAL aval, int diffindex) throw()
- init object with (val, e_diffindex)
-
AutoDiff& operator= (SCAL aval) throw()
- assign constant value
-
SCAL Value() const throw()
- returns value
-
SCAL DValue(int i) const throw()
- returns partial derivative
-
SCAL& Value() throw()
- access value
-
SCAL& DValue(int i) throw()
- accesses partial derivative
-
AutoDiff<D,SCAL> & operator+= (const AutoDiff<D, SCAL> & y) throw()
-
AutoDiff<D,SCAL> & operator-= (const AutoDiff<D, SCAL> & y) throw()
-
AutoDiff<D,SCAL> & operator*= (const AutoDiff<D, SCAL> & y) throw()
-
AutoDiff<D,SCAL> & operator*= (const SCAL & y) throw()
-
AutoDiff<D,SCAL> & operator/= (const SCAL & y) throw()
-
bool operator== (SCAL val2) throw()
-
bool operator!= (SCAL val2) throw()
-
bool operator< (SCAL val2) throw()
-
bool operator> (SCAL val2) throw()
AutoDiff() throw()
- elements are undefined
AutoDiff(const AutoDiff & ad2) throw()
- copy constructor
AutoDiff(SCAL aval) throw()
- initial object with constant value
AutoDiff(SCAL aval, int diffindex) throw()
- init object with (val, e_diffindex)
AutoDiff& operator= (SCAL aval) throw()
- assign constant value
SCAL Value() const throw()
- returns value
SCAL DValue(int i) const throw()
- returns partial derivative
SCAL& Value() throw()
- access value
SCAL& DValue(int i) throw()
- accesses partial derivative
AutoDiff<D,SCAL> & operator+= (const AutoDiff<D, SCAL> & y) throw()
AutoDiff<D,SCAL> & operator-= (const AutoDiff<D, SCAL> & y) throw()
AutoDiff<D,SCAL> & operator*= (const AutoDiff<D, SCAL> & y) throw()
AutoDiff<D,SCAL> & operator*= (const SCAL & y) throw()
AutoDiff<D,SCAL> & operator/= (const SCAL & y) throw()
bool operator== (SCAL val2) throw()
bool operator!= (SCAL val2) throw()
bool operator< (SCAL val2) throw()
bool operator> (SCAL val2) throw()
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.