Skip to content

Commit

Permalink
Update solution_functions.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
RJDennis committed Apr 29, 2023
1 parent 027cb49 commit d8e9745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solution_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ function solve_fourth_order_det(model::REModel,scheme::PerturbationScheme)
first_derivs[i,:] .= first_d(point)

#second_d(x) = ForwardDiff.hessian(model_equations[i],x,ForwardDiff.HessianConfig(model_equations[i],x,ForwardDiff.Chunk{1}()))[:,1:2*nv]
second_d(x) = ForwardDiff.jacobian(first_d,x,ForwardDiff.JacobianConfig(first_d,x,ForwardDiff.Chunk{1}()))[1:2*n,1:2*n]
second_d(x) = ForwardDiff.jacobian(first_d,x,ForwardDiff.JacobianConfig(first_d,x,ForwardDiff.Chunk{1}()))[1:2*nv,1:2*nv]
second_derivs[i,:] .= vec(second_d(point))

third_d(x) = ForwardDiff.jacobian(second_d,x,ForwardDiff.JacobianConfig(second_d,x,ForwardDiff.Chunk{1}()))[:,1:2*nv]
Expand Down

0 comments on commit d8e9745

Please sign in to comment.