-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
The logdensity_and_gradient function is very useful for using e.g. ForwardDiff to compute the gradient of the log density function.
Could we also add a new function logdensity_and_hessian that uses ForwardDiff to compute the Hessian of the log density function?
Although, I suppose that, in the process of computing the Hessian, ForwardDiff will also compute and store the gradient. So it would probably make the most sense to add a new function logdensity_and_gradient_and_hessian that returns the value, the gradient, and the Hessian.
Metadata
Metadata
Assignees
Labels
No labels