mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Added missing precision/eps functions to AutoDiffScalar.
This commit is contained in:
parent
f079f52b58
commit
e2a059863e
@ -563,6 +563,8 @@ template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
|
|||||||
AddCost = 1,
|
AddCost = 1,
|
||||||
MulCost = 1
|
MulCost = 1
|
||||||
};
|
};
|
||||||
|
inline static Real epsilon() { return std::numeric_limits<Real>::epsilon(); }
|
||||||
|
inline static Real dummy_precision() { return NumTraits<Real>::dummy_precision(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user