Drake
eigen_autodiff_limits.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef DRAKE_COMMON_AUTODIFF_HEADER
4 // TODO(soonho-tri): Change to #error.
5 #warning Do not directly include this file. Include "drake/common/autodiff.h".
6 #endif
7 
8 #include <limits>
9 
10 // Eigen provides `numeric_limits<AutoDiffScalar<T>>` starting with v3.3.4.
11 #if !EIGEN_VERSION_AT_LEAST(3, 3, 4) // Eigen Version < v3.3.4
12 
13 namespace std {
14 template <typename T>
15 class numeric_limits<Eigen::AutoDiffScalar<T>>
16  : public numeric_limits<typename T::Scalar> {};
17 
18 } // namespace std
19 
20 #endif // Eigen Version < v3.3.4
STL namespace.
Definition: autodiff_overloads.h:34