Compatibility problem with Eigen 5.0.0 #389
Unanswered
martinzwiebler
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have autodiff as a submodule and Eigen 5.0.0 installed. When trying to compile, I get:
In file included from myRepository/plugins/autodiff/autodiff/forward/utils/gradient.hpp:33,
from myRepository/plugins/autodiff/autodiff/forward/real/eigen.hpp:37,
myRepository/plugins/autodiff/autodiff/common/eigen.hpp:105:86: error: type/value mismatch at argument 3 in template parameter list for ‘template<class XprType, class RowIndices, class ColIndices> class Eigen::IndexedView’
105 | struct VectorTraits<Eigen::IndexedView<VectorType, IndicesType, Eigen::internal::SingleRange>>
myRepository/plugins/autodiff/autodiff/common/eigen.hpp:105:86: note: expected a type, got ‘SingleRange’
myRepository/plugins/autodiff/autodiff/common/eigen.hpp:105:97: error: template argument 1 is invalid
105 | struct VectorTraits<Eigen::IndexedView<VectorType, IndicesType, Eigen::internal::SingleRange>>
| ^~
myRepository/plugins/autodiff/autodiff/common/eigen.hpp:114:86: error: type/value mismatch at argument 2 in template parameter list for ‘template<class XprType, class RowIndices, class ColIndices> class Eigen::IndexedView’
114 | struct VectorTraits<Eigen::IndexedView<VectorType, Eigen::internal::SingleRange, IndicesType>>
| ^~~~~~~~~~~
myRepository/plugins/autodiff/autodiff/common/eigen.hpp:114:86: note: expected a type, got ‘SingleRange’
myRepository/plugins/autodiff/autodiff/common/eigen.hpp:114:97: error: template argument 1 is invalid
114 | struct VectorTraits<Eigen::IndexedView<VectorType, Eigen::internal::SingleRange, IndicesType>>
It is compiling as intended when I use Eigen 3.4.0 instead.
Beta Was this translation helpful? Give feedback.
All reactions