Specializing numeric_limits For AutoDiffScalar

This commit is contained in:
Mmanu Chaturvedi
2017-05-23 17:12:36 -04:00
parent 26e8f9171e
commit 2971503fed
2 changed files with 21 additions and 0 deletions

View File

@@ -683,4 +683,11 @@ template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
}
namespace std {
template <typename T>
class numeric_limits<Eigen::AutoDiffScalar<T> >
: public numeric_limits<typename T::Scalar> {};
} // namespace std
#endif // EIGEN_AUTODIFF_SCALAR_H