New user self-registration is currently disabled. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Bug 1063 - Trying to compute AutoDiff Hessians results in an assertion error (possibly a one character fix?)
Trying to compute AutoDiff Hessians results in an assertion error (possibly a...
Status: RESOLVED FIXED
Product: Eigen
Classification: Unclassified
Component: Unsupported modules
unspecified
All All
: Normal Crash
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-14 22:43 UTC by twan_koolen
Modified: 2015-11-05 13:05 UTC (History)
2 users (show)



Attachments
Hessian example that causes an assertion error (2.22 KB, text/plain)
2015-09-14 22:43 UTC, twan_koolen
no flags Details

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.

Note You need to log in before you can comment on or make changes to this bug.