Bugzilla – Bug 1063
Trying to compute AutoDiff Hessians results in an assertion error (possibly a one character fix?)
Last modified: 2015-11-05 13:05:31 UTC
Created attachment 603 [details]
Hessian example that causes an assertion error
This originates from https://forum.kde.org/viewtopic.php?f=74&t=112093
The example given by ralf.denzer still causes an assertion error in 3.2.5 as well as in the devel branch.
The fix given by pjsa seems to work still, i.e. replace
typedef AutoDiffScalar<DerType>& Nested;
typedef AutoDiffScalar<DerType> Nested;
in the NumTraits for AutoDiffScalar. So is this just the right fix for this problem?
For future reference, I've added ralf.denzer's example code that causes the assertion error.