NGSolve  5.3
Public Types | Public Member Functions
ngstd::AutoDiff< D, SCAL > Class Template Reference

Datatype for automatic differentiation. More...

#include <autodiff.hpp>

List of all members.

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 AutoDiffoperator= (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

Detailed Description

template<int D, typename SCAL = double>
class ngstd::AutoDiff< D, SCAL >

Datatype for automatic differentiation.

Contains function value and D derivatives. Algebraic operations are overloaded by using product-rule etc. etc.


The documentation for this class was generated from the following file: