Add NumTraits::digits for Eigen 5 support - #251
Conversation
The random number generator in Eigen 5 calls NumTraits<Scalar>::digits(). This is not currently implemented for CppAD types, causing a compile-time failure. Add such an implementation that simply uses std::numeric_limits<T>::digits. Closes coin-or#250.
|
Nice job and thanks! I have a few minor comments to help with future pull requests:
|
|
Perhaps we should change the testing of CppAD to use Eigen 5 ? |
The random number generator in Eigen 5 calls
NumTraits<Scalar>::digits(). This is not currently implemented for CppAD types, causing a compile-time failure. Add such an implementation that simply usesstd::numeric_limits<T>::digits. Closes #250.