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

[more] AutoDiff() throw()
initial object as zero
[more] AutoDiff(double aval) throw()
initial object with constant value
[more] AutoDiff(double aval, int diffindex) throw()
init object with (val, e_diffindex)
[more]AutoDiff& operator= (double aval) throw()
assign constant value
[more]double Value() const throw()
returns value
[more]double DValue(int i) const throw()
returns partial derivative
[more]double& Value() throw()
access value
[more]double& DValue(int i) throw()
accesses partial derivative
[more]AutoDiff<D> & operator+= (const AutoDiff<D> & y) throw()
[more]AutoDiff<D> & operator-= (const AutoDiff<D> & y) throw()
[more]AutoDiff<D> & operator*= (const AutoDiff<D> & y) throw()
[more]bool operator== (double val2) throw()
[more]bool operator!= (double val2) throw()
[more]bool operator< (double val2) throw()
[more]bool operator> (double val2) throw()

o AutoDiff() throw()
initial object as zero

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

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

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

odouble Value() const throw()
returns value

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

odouble& Value() throw()
access value

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

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

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

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

obool operator== (double val2) throw()

obool operator!= (double val2) throw()

obool operator< (double val2) throw()

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