diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-21 15:44:34 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-21 15:44:34 +0100 |
commit | e2a059863e6d02f77389c615f86ff036d7081e22 (patch) | |
tree | f4f95a597228064671cf38376f3f17eb421d1668 | |
parent | f079f52b587375135700e56eccf6858b4ece00ae (diff) |
Added missing precision/eps functions to AutoDiffScalar.
-rw-r--r-- | unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index ec25106f5..4b7331035 100644 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -563,6 +563,8 @@ template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> > AddCost = 1, MulCost = 1 }; + inline static Real epsilon() { return std::numeric_limits<Real>::epsilon(); } + inline static Real dummy_precision() { return NumTraits<Real>::dummy_precision(); } }; } |