Hessian-vector product in place with ReverseDiff

It seems g should be similar to the x in the dot not the x input to ∇²fv!. Why the code above doesn’t error is probably a bug. You can open an issue.

1 Like