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

[more] AutoDiff() throw()
elements are undefined
[more] AutoDiff(const AutoDiff & ad2) throw()
copy constructor
[more] AutoDiff(SCAL aval) throw()
initial object with constant value
[more] AutoDiff(SCAL aval, int diffindex) throw()
init object with (val, e_diffindex)
[more]AutoDiff& operator= (SCAL aval) throw()
assign constant value
[more]SCAL Value() const throw()
returns value
[more]SCAL DValue(int i) const throw()
returns partial derivative
[more]SCAL& Value() throw()
access value
[more]SCAL& DValue(int i) throw()
accesses partial derivative
[more]AutoDiff<D,SCAL> & operator+= (const AutoDiff<D, SCAL> & y) throw()
[more]AutoDiff<D,SCAL> & operator-= (const AutoDiff<D, SCAL> & y) throw()
[more]AutoDiff<D,SCAL> & operator*= (const AutoDiff<D, SCAL> & y) throw()
[more]AutoDiff<D,SCAL> & operator*= (const SCAL & y) throw()
[more]AutoDiff<D,SCAL> & operator/= (const SCAL & y) throw()
[more]bool operator== (SCAL val2) throw()
[more]bool operator!= (SCAL val2) throw()
[more]bool operator< (SCAL val2) throw()
[more]bool operator> (SCAL val2) throw()

o AutoDiff() throw()
elements are undefined

o AutoDiff(const AutoDiff & ad2) throw()
copy constructor

o AutoDiff(SCAL aval) throw()
initial object with constant value

o AutoDiff(SCAL aval, int diffindex) throw()
init object with (val, e_diffindex)

oAutoDiff& operator= (SCAL aval) throw()
assign constant value

oSCAL Value() const throw()
returns value

oSCAL DValue(int i) const throw()
returns partial derivative

oSCAL& Value() throw()
access value

oSCAL& DValue(int i) throw()
accesses partial derivative

oAutoDiff<D,SCAL> & operator+= (const AutoDiff<D, SCAL> & y) throw()

oAutoDiff<D,SCAL> & operator-= (const AutoDiff<D, SCAL> & y) throw()

oAutoDiff<D,SCAL> & operator*= (const AutoDiff<D, SCAL> & y) throw()

oAutoDiff<D,SCAL> & operator*= (const SCAL & y) throw()

oAutoDiff<D,SCAL> & operator/= (const SCAL & y) throw()

obool operator== (SCAL val2) throw()

obool operator!= (SCAL val2) throw()

obool operator< (SCAL val2) throw()

obool 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++.