Hello, With g++ 5.4 on ubuntu 16.04 I am having several errors compiling with the development branch, e.g.: eigen/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h:382:8: error: partial specialization of ‘struct Eigen::ScalarBinaryOpTraits<Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>, A_Scalar, BinOp>’ after instantiation of ‘struct Eigen::ScalarBinaryOpTraits<Eigen::Matrix<double, 3, 3>, double, Eigen::internal::scalar_product_op<Eigen::Matrix<double, 3, 3>, double> >’ [-fpermissive] struct ScalarBinaryOpTraits<Matrix<A_Scalar, A_Rows, A_Cols, A_Options, A_MaxRows, A_MaxCols>,A_Scalar,BinOp> Removing the first two specializations of ScalarBinaryOpTraits in AutoDiffScalar.h eliminates the error but I'm not entirely sure if this is an appropriate solution or not. Thank you!
Could you post the line of code that triggers this issue? thanks.
*** Bug 1262 has been marked as a duplicate of this bug. ***
nevermind, bug 1263 provides a failing example: #include "Eigen/Core" #include "unsupported/Eigen/AutoDiff" using namespace Eigen; int main (int argc, char const *argv[]) { using Vec = Matrix<double, 5, 1>; using Mat = Matrix<double, 5, 5>; Mat leftEigenVectors, rightEigenVectors; Vec eigenValues, diffState, absAXDiff; absAXDiff = (rightEigenVectors * (eigenValues.asDiagonal() * (leftEigenVectors * diffState))); }
I cannot find any justifications for those two overloads, so let's remove them: https://bitbucket.org/eigen/eigen/commits/815734e048fd/ Summary: Bug 1260: remove doubtful specializations of ScalarBinaryOpTraits
*** Bug 1263 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1260.