Template Struct DfDy
Defined in File DfDy.hpp
Struct Documentation
-
template<typename ModelT, MemberFunctions function>
struct DfDy Enzyme automatic differentiation Jacobian evaluator: Internal Jacobian, df/dy.
- Template Parameters:
ModelT – - model type
MemberFunctions – - member function parameter key
Public Static Functions
-
static inline void eval(ModelT *model, const size_t n_res, const size_t n_var, const IdxT *res_indices, const IdxT *var_indices, const ScalarT *y, const ScalarT *yp, const ScalarT *wb, IdxT *rows, IdxT *cols, RealT *vals, IdxT &nnz)
- Parameters:
model – [in] - Pointer to the model to be differentiated
n_res – [in] - Number of residual functions
n_var – [in] - Number of independent variables
res_indices – [in] - Global residual indices
var_indices – [in] - Global variable indices
y – [in] - Internal variables
yp – [in] - Internal variable derivatives
wb – [in] - Bus variables
rows – [out] - Row indices
cols – [out] - Column indices
vals – [out] - Values
nnz – [out] - Number of nonzeros
-
static inline void eval(ModelT *model, const size_t n_res, const size_t n_var, const IdxT *res_indices, const IdxT *var_indices, const ScalarT *y, const ScalarT *yp, const ScalarT *wb, const ScalarT *ws, IdxT *rows, IdxT *cols, RealT *vals, IdxT &nnz)
- Parameters:
model – [in] - Pointer to the model to be differentiated
n_res – [in] - Number of residual functions
n_var – [in] - Number of independent variables
res_indices – [in] - Map from local residual indices to global indices
var_indices – [in] - Map from local variable indices to global indices
y – [in] - Internal variables
yp – [in] - Internal variable derivatives
wb – [in] - Bus variables
ws – [in] - Signal variables
rows – [out] - Row indices
cols – [out] - Column indices
vals – [out] - Values
nnz – [out] - Number of nonzeros