Skip to content

Feature request: logdensity_and_hessian #65

@DilumAluthge

Description

@DilumAluthge

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions