diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-09-28 15:07:03 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-09-28 15:07:03 +0200 |
commit | ddb5650530e0b4edc9004b096973e65fecbddba1 (patch) | |
tree | 26aab070232af4ecef4259ea4fe18f70450e5961 /unsupported/Eigen/src/AutoDiff | |
parent | 02e940fc9f55fffc69f0081781ede5949f9a37fc (diff) |
bug #1070: propagate last three Matrix template arguments for NumTraits<AutoDiffScalar<>>::Real
Diffstat (limited to 'unsupported/Eigen/src/AutoDiff')
-rw-r--r-- | unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index 8336c2644..bc641aef4 100644 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -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{ |