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.
-- GitLab Migration Automatic Message --
This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1063.