Skip to content

Matrix product with triangularView does not compile

Submitted by Sebastian Birk

Assigned to Nobody

Link to original bugzilla bug (#879)
Operating system: Linux

Description

Hi,

the following minimal example does not compile (neither with clang nor with gcc) with the current tip (rev 6427) of the Eigen development branch:

typedef Eigen::Matrixstd::complex<double>,Dynamic,Dynamic,RowMajor MatDense;

MatDense A, B, C;

A.triangularViewEigen::Upper() = B*C.triangularViewEigen::Upper();

I tracked the hg revision down to be 6359 that introduces the compilation error. Up to revision 6358 the above code compiled.

Clang prints several errors:

Eigen/src/Core/util/BlasUtil.h:162:52: error: no member named 'IsVectorAtCompileTime' in 'Eigen::TriangularView<Eigen::Matrix<std::complex<double>, -1, -1, 1, -1,

  -1>, 2>' && (   bool(XprType::IsVectorAtCompileTime)  

Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h:250:65: error: no viable conversion from 'const Eigen::TriangularView<Eigen::Matrix<std::complex<double>,

  -1, -1, 1, -1, -1>, 2>' to 'typename internal::add_const_on_value_type&lt;ActualRhs&gt;::type' (aka 'const int')  

typename internal::add_const_on_value_type&lt;ActualRhs&gt;::type actualRhs = RhsBlasTraits::extract(prod.rhs());  

Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h:256:29: error: type '_ActualRhs' (aka 'int') cannot be used prior to '::' because it has no members

  typename Rhs::Scalar, _ActualRhs::Flags&RowMajorBit ? RowMajor : ColMajor, RhsBlasTraits::NeedToConjugate  

Cheers,

Sebastian

Blocking

#1608