diff options
author | Mmanu Chaturvedi <mmanu.chaturvedi@kitware.com> | 2017-05-23 17:12:36 -0400 |
---|---|---|
committer | Mmanu Chaturvedi <mmanu.chaturvedi@kitware.com> | 2017-05-23 17:12:36 -0400 |
commit | 2971503fed85add086cb163d24ee5d402d631aab (patch) | |
tree | 7e0e309f5aa16c22fb1b5e8be0bbe295bfd97dbc /unsupported/Eigen/src/AutoDiff | |
parent | 26e8f9171eb07e188af45d7583b03c5be40a5f48 (diff) |
Specializing numeric_limits For AutoDiffScalar
Diffstat (limited to 'unsupported/Eigen/src/AutoDiff')
-rwxr-xr-x | unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index d2808860c..279fe5cd3 100755 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -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 |