Highly Asymmetric Hessian after optimization

Yeah, good point. Output a Symmetric from the Hessians by ChrisRackauckas · Pull Request #68 · JuliaDiff/FiniteDiff.jl · GitHub

1 Like

This is a side-issue, but I don’t see copytri! in the LinearAlgebra documentation at Linear Algebra · The Julia Language, or anywhere in the docs according to the search web interface. Does that mean anything?

It means it copies the triangular part to the other triangle.

I meant does the fact that copytri! isn’t documented mean anything?

It is not part of the official API and could change without warning.

But given that new releases are tested against registered packages, this is not a major concern.

I’m not sure if those remarks were intended to cover Newton only, or all the optimization methods. What about methods that don’t use the 2nd derivative? The trade-off seems different there, since the optimization never uses the Hessian but the consumer of the result may want it aftewords.

For BFGS we don’t assume that the hessian is available, so in that case it’s up to the user to do whatever they want.

1 Like