Open lassepe opened 4 years ago
Aliasing is still important, due to the updating code looking like this everywhere:
Basically, whenever you call res2 = do_stuff!(res1, args...)
, you're unsure that res1
is correct: all you know is that res2
is.
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 aboutDiffResults
at all so I remain curious why re-aliasing is necessary here. Is re-aliasing no longer needed?