Re: [eigen] Eigen::internal::conj_helper: cj has incomplete type |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Dear All,
I've continued playing with eigen and run across the following problem, which might be related
to bug 279 and PR 194. However, it appears to me, that it is separate issue, as it is not mixing types-
Sadly, it is seems to be buried deeply into the template machinery, and my knowledge on the internals
is still pretty limited.
I wanted to used a self defined type based on complex numbers, where I can't use a matrix times its adjoint.,
in short
const int M=2;
TpMatrix H(M,M);
H << 1,2,3,4;
TpMatrix rh0 = H.adjoint(); // o.k.
TpMatrix rho1 = H * H; // o..k.
TpMatrix rho2 = H + H.adjoint(); // o.k.
TpMatrix rho3 = H * H.adjoint(); // not o.k.
The compilation for rho0, rho1, and rho2 is fine, yet rho3 gives a compilation error:
Test.C:111:33: required from here
/home/peter/Eigen/eigen/Eigen/src/Core/products/GeneralBlock PanelKernel.h:545:64: error: ‘Eigen::internal::conj_helper< MyType<std::complex<double> >, MyType<std::complex<double> >, true, false> cj’ has incomplete type
conj_helper<LhsScalar,RhsScalar,ConjugateLhs,ConjugateRhs> cj;
I've attached a simplified version of my code, which doesn't make much sense, it's just for demonstrating the error.
In addition I've attached the error messages using g++ and clang.
I tried several recent Eigen versions, including eigen-eigen-dc6cfdf9bcec used for the attached error messages.
They all give the same error.
Any help is appreciated,
best regards,
Peter
^
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |