In file autodiff.hpp:template<int D> class AutoDiff
Object for automatic differentiation.
Documentation
Object for automatic differentiation.
Contains function value and D derivatives. Algebraic
operations are overloaded by using product-rule etc. etc.
Public Methods
-
AutoDiff() throw()
- initial object as zero
-
AutoDiff(double aval) throw()
- initial object with constant value
-
AutoDiff(double aval, int diffindex) throw()
- init object with (val, e_diffindex)
-
AutoDiff& operator= (double aval) throw()
- assign constant value
-
double Value() const throw()
- returns value
-
double DValue(int i) const throw()
- returns partial derivative
-
double& Value() throw()
- access value
-
double& DValue(int i) throw()
- accesses partial derivative
-
AutoDiff<D> & operator+= (const AutoDiff<D> & y) throw()
-
AutoDiff<D> & operator-= (const AutoDiff<D> & y) throw()
-
AutoDiff<D> & operator*= (const AutoDiff<D> & y) throw()
-
bool operator== (double val2) throw()
-
bool operator!= (double val2) throw()
-
bool operator< (double val2) throw()
-
bool operator> (double val2) throw()
AutoDiff() throw()
- initial object as zero
AutoDiff(double aval) throw()
- initial object with constant value
AutoDiff(double aval, int diffindex) throw()
- init object with (val, e_diffindex)
AutoDiff& operator= (double aval) throw()
- assign constant value
double Value() const throw()
- returns value
double DValue(int i) const throw()
- returns partial derivative
double& Value() throw()
- access value
double& DValue(int i) throw()
- accesses partial derivative
AutoDiff<D> & operator+= (const AutoDiff<D> & y) throw()
AutoDiff<D> & operator-= (const AutoDiff<D> & y) throw()
AutoDiff<D> & operator*= (const AutoDiff<D> & y) throw()
bool operator== (double val2) throw()
bool operator!= (double val2) throw()
bool operator< (double val2) throw()
bool operator> (double 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++.