The documentation points out, that it really important to re-alias the result, e.g. in
result = ForwardDiff.hessian!(result, f, x);
It says that more information for why this is done can be found in the documentation of ForwardDiff.hessian!. Unfortunately, the according documentation does not talk about DiffResults at all so I remain curious why re-aliasing is necessary here. Is re-aliasing no longer needed?
The documentation points out, that it really important to re-alias the result, e.g. in
It says that more information for why this is done can be found in the documentation of
ForwardDiff.hessian!. Unfortunately, the according documentation does not talk aboutDiffResultsat all so I remain curious why re-aliasing is necessary here. Is re-aliasing no longer needed?