fix usage of epsilon wrt to latest API change

This commit is contained in:
Thomas Capricelli 2010-02-11 01:43:36 +01:00
parent ccc58e935e
commit fd19dd57d8

View File

@ -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