This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 1063

Summary: Trying to compute AutoDiff Hessians results in an assertion error (possibly a one character fix?)
Product: Eigen Reporter: twan_koolen
Component: Unsupported modulesAssignee: Nobody <eigen.nobody>
Status: RESOLVED FIXED    
Severity: Crash CC: chtz, gael.guennebaud
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Hessian example that causes an assertion error none

Description twan_koolen 2015-09-14 22:43:05 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;
with
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.
Comment 2 Nobody 2019-12-04 14:54:01 UTC
-- 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.