mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
fix usage of epsilon wrt to latest API change
This commit is contained in:
parent
ccc58e935e
commit
fd19dd57d8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user