diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index a878b221f..455adcadb 100644 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -478,8 +478,8 @@ struct scalar_product_traits,T> inline const Eigen::AutoDiffScalar::type>::Scalar>, const typename Eigen::internal::remove_all::type> > \ FUNC(const Eigen::AutoDiffScalar& x) { \ using namespace Eigen; \ - typedef typename internal::traits::type>::Scalar Scalar; \ - typedef AutoDiffScalar, const typename internal::remove_all::type> > ReturnType; \ + typedef typename Eigen::internal::traits::type>::Scalar Scalar; \ + typedef AutoDiffScalar, const typename Eigen::internal::remove_all::type> > ReturnType; \ CODE; \ } @@ -510,8 +510,8 @@ namespace std pow(const Eigen::AutoDiffScalar& x, typename Eigen::internal::traits::Scalar y) { using namespace Eigen; - typedef typename internal::traits::Scalar Scalar; - return AutoDiffScalar, const DerType> >( + typedef typename Eigen::internal::traits::Scalar Scalar; + return AutoDiffScalar, const DerType> >( std::pow(x.value(),y), x.derivatives() * (y * std::pow(x.value(),y-1))); }