NGSolve 5.3
Public Types | Public Member Functions | List of all members
ngstd::AutoDiffVec< D, SCAL > Class Template Reference

Datatype for automatic differentiation. More...

#include <autodiff.hpp>

Public Types

typedef AutoDiffVec< D, SCALTELEM
 
typedef SCAL TSCAL
 

Public Member Functions

 AutoDiffVec ()=default
 elements are undefined
 
 AutoDiffVec (const AutoDiffVec &ad2)=default
 copy constructor
 
INLINE AutoDiffVec (SCAL aval) throw ()
 initial object with constant value
 
INLINE AutoDiffVec (SCAL aval, int diffindex) throw ()
 init object with (val, e_diffindex)
 
INLINE AutoDiffVec (SCAL aval, const SCAL *grad)
 
INLINE AutoDiffVecoperator= (SCAL aval) throw ()
 assign constant value
 
AutoDiffVecoperator= (const AutoDiffVec &ad2)=default
 
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 SCALValue () throw ()
 access value
 
INLINE SCALDValue (int i) throw ()
 accesses partial derivative
 

Detailed Description

template<int D, typename SCAL = double>
class ngstd::AutoDiffVec< 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: