Skip to content

Commit

Permalink
param_vals
Browse files Browse the repository at this point in the history
  • Loading branch information
HettieC committed Nov 26, 2024
1 parent 9771124 commit 1460e67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/differentiate_efm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ function differentiate_efm(
dL_params(x, ν, parameters) = FastDifferentiation.jacobian(L(x, ν, parameters), parameters)
# substitute parameter values:
dL_params_eval = FastDifferentiation.make_function(dL_params(x, ν, parameters), parameters)

param_vals = float.(collect(values(parameter_values)))

dx = -Array(dl_vars) \ dL_params_eval(param_vals)

# note: dx[[3,4],:] gives the derivatives of the dual variables ν
Expand Down

0 comments on commit 1460e67

Please sign in to comment.