From e2a059863e6d02f77389c615f86ff036d7081e22 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sun, 21 Feb 2010 15:44:34 +0100 Subject: [PATCH] Added missing precision/eps functions to AutoDiffScalar. --- unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 2 ++ 1 file changed, 2 insertions(+) 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 struct NumTraits > AddCost = 1, MulCost = 1 }; + inline static Real epsilon() { return std::numeric_limits::epsilon(); } + inline static Real dummy_precision() { return NumTraits::dummy_precision(); } }; }