Re: [eigen] problem with operator() in development branch

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


oh, I know about this issue.

Gael: the issue is that ProductBase doesn't allow coeff-based access.
But it inherits DenseBase. Honestly I think that it would be far
simpler if we said that by convention, and xpr inheriting DenseBase
has (usable) coeff methods. Is that OK? Do you see a big difficulty
with allowing that? If you think that's really not possible, then do
you agree that ProductBase should not inherit DenseBase anymore?

Benoit

2010/5/26 Bill Greene <w.h.greene@xxxxxxxxx>:
> I'm running with a very recent version of Eigen from the development branch.
> The following code snippet works fine with Eigen 2
>
>  Eigen::MatrixXd a(1,2), b(2,1);
>  a << 1, 2;
>  b << 2, 3;
>  double c = (a*b)(0,0);
>  std::cout << "c=" << c << std::endl;
>
> but I get a compilation error with VC++ 2008 and the development branch Eigen
>
> d:\u_drive\src\eigen\dev_branch\eigen\eigen\src\core\densecoeffsbase.h(92)
> : error C2248: 'Eigen::ProductBase<Derived,Lhs,Rhs>::coeff' : cannot
> access private member declared in class
> 'Eigen::ProductBase<Derived,Lhs,Rhs>'
> 1>
>
> Thanks.
>
> Bill Greene
>
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/