aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/NumericalDiff
diff options
context:
space:
mode:
authorGravatar Thomas Capricelli <orzel@freehackers.org>2010-02-11 01:43:36 +0100
committerGravatar Thomas Capricelli <orzel@freehackers.org>2010-02-11 01:43:36 +0100
commitfd19dd57d81df2505638d170a3149e710699dafb (patch)
tree287dcc1e671f08ad90629be1fa4b70d845dd90d8 /unsupported/Eigen/src/NumericalDiff
parentccc58e935ea2123590013f0cdc8e6ae25bca4f28 (diff)
fix usage of epsilon wrt to latest API change
Diffstat (limited to 'unsupported/Eigen/src/NumericalDiff')
-rw-r--r--unsupported/Eigen/src/NumericalDiff/NumericalDiff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h b/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h
index db6f791df..8d23cb4ae 100644
--- a/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h
+++ b/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h
@@ -80,7 +80,7 @@ public:
Scalar h;
int nfev=0;
const int n = _x.size();
- const Scalar eps = ei_sqrt((std::max(epsfcn,epsilon<Scalar>() )));
+ const Scalar eps = ei_sqrt((std::max(epsfcn,NumTraits<Scalar>::epsilon() )));
ValueType val1, val2;
InputType x = _x;
// TODO : we should do this only if the size is not already known