mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
bug #1070: propagate last three Matrix template arguments for NumTraits<AutoDiffScalar<>>::Real
This commit is contained in:
parent
02e940fc9f
commit
ddb5650530
@ -626,7 +626,8 @@ EIGEN_AUTODIFF_DECLARE_GLOBAL_UNARY(acos,
|
|||||||
template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
|
template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
|
||||||
: NumTraits< typename NumTraits<typename DerType::Scalar>::Real >
|
: 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> NonInteger;
|
||||||
typedef AutoDiffScalar<DerType>& Nested;
|
typedef AutoDiffScalar<DerType>& Nested;
|
||||||
enum{
|
enum{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user