bug #1070: propagate last three Matrix template arguments for NumTraits<AutoDiffScalar<>>::Real

This commit is contained in:
Gael Guennebaud 2015-09-28 15:07:03 +02:00
parent 02e940fc9f
commit ddb5650530

View File

@ -626,7 +626,8 @@ EIGEN_AUTODIFF_DECLARE_GLOBAL_UNARY(acos,
template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
: NumTraits< typename NumTraits<typename DerType::Scalar>::Real >
{
typedef AutoDiffScalar<Matrix<typename NumTraits<typename DerType::Scalar>::Real,DerType::RowsAtCompileTime,DerType::ColsAtCompileTime> > Real;
typedef AutoDiffScalar<Matrix<typename NumTraits<typename DerType::Scalar>::Real,DerType::RowsAtCompileTime,DerType::ColsAtCompileTime,
DerType::Options, DerType::MaxRowsAtCompileTime, DerType::MaxColsAtCompileTime> > Real;
typedef AutoDiffScalar<DerType> NonInteger;
typedef AutoDiffScalar<DerType>& Nested;
enum{