Template Struct DfDx

Struct Documentation

template<typename ModelT>
struct DfDx

Enzyme objective gradient, df/dx, by one reverse sweep.

Template Parameters:

ModelT – - optimization component model

Public Static Functions

template<typename ScalarT, typename RealT>
static inline void eval(const ModelT *model, const ScalarT *x, RealT *gradient)
Parameters:
  • model – [in] - Pointer to the model to be differentiated

  • x – [in] - Local variables

  • gradient – [out] - Gradient with respect to the local variables