diff options
author | Thomas Capricelli <orzel@freehackers.org> | 2010-02-11 01:43:36 +0100 |
---|---|---|
committer | Thomas Capricelli <orzel@freehackers.org> | 2010-02-11 01:43:36 +0100 |
commit | fd19dd57d81df2505638d170a3149e710699dafb (patch) | |
tree | 287dcc1e671f08ad90629be1fa4b70d845dd90d8 /unsupported/Eigen/src/NumericalDiff | |
parent | ccc58e935ea2123590013f0cdc8e6ae25bca4f28 (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.h | 2 |
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 |