clad icon indicating copy to clipboard operation
clad copied to clipboard

Compute the hessian matrix diagonal only

Open vgvassilev opened this issue 1 year ago • 1 comments

In many cases we need only the diagonal for the optimizer seeding. We can avoid computing the full matrix as in problems with many parameters will be costly.

cc: @lmoneta.

vgvassilev avatar Nov 23 '22 14:11 vgvassilev

@vaithak perhaps we can implement an option to the clad::jacobian and clad::hessian allowing the user to specify that they want only the diagonal. In turn we can change the differentiation plan to include only these instead of computing all and throwing them away.

vgvassilev avatar Feb 07 '24 16:02 vgvassilev