aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/AutoDiff
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-01-28 15:30:33 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-01-28 15:30:33 +0100
commit6ec660ca7e12e2225156ab6e47ddaed7d857ff06 (patch)
treed8eb984513ab6e20e92b9f1ae8be7e8cc78cdf13 /unsupported/Eigen/src/AutoDiff
parentaf712e80e6572a8fa1a8599dd98796b722052650 (diff)
fix crash in autodiff
Diffstat (limited to 'unsupported/Eigen/src/AutoDiff')
-rw-r--r--unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h
index 455adcadb..7517035d9 100644
--- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h
+++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h
@@ -566,6 +566,9 @@ template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
{
typedef AutoDiffScalar<DerType> NonInteger;
typedef AutoDiffScalar<DerType>& Nested;
+ enum{
+ RequireInitialization = 1
+ };
};
}