|
NGSolve
5.3
|
Datatype for automatic differentiation. More...
#include <autodiff.hpp>
Public Types | |
| typedef AutoDiff< D, SCAL > | TELEM |
| typedef SCAL | TSCAL |
Public Member Functions | |
| INLINE | AutoDiff () throw () |
| elements are undefined | |
| INLINE | AutoDiff (const AutoDiff &ad2) throw () |
| copy constructor | |
| INLINE | AutoDiff (SCAL aval) throw () |
| initial object with constant value | |
| INLINE | AutoDiff (SCAL aval, int diffindex) throw () |
| init object with (val, e_diffindex) | |
| INLINE | AutoDiff (SCAL aval, const SCAL *grad) |
| INLINE AutoDiff & | operator= (SCAL aval) throw () |
| assign constant value | |
| INLINE SCAL | Value () const throw () |
| returns value | |
| INLINE SCAL | DValue (int i) const throw () |
| returns partial derivative | |
| INLINE void | StoreGradient (SCAL *p) const |
| INLINE void | LoadGradient (const SCAL *p) |
| INLINE SCAL & | Value () throw () |
| access value | |
| INLINE SCAL & | DValue (int i) throw () |
| accesses partial derivative | |
Datatype for automatic differentiation.
Contains function value and D derivatives. Algebraic operations are overloaded by using product-rule etc. etc.
1.7.6.1