[eigen] problem with operator() in development branch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] problem with operator() in development branch
- From: Bill Greene <w.h.greene@xxxxxxxxx>
- Date: Wed, 26 May 2010 13:11:05 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=GylkGlwELN4tKJd8xQn8QObN1tTJsQ8wtvFPSQcVdbY=; b=FwX1AO80kRaHhCKSoI91BPrPm65fzyOaQ4EFNEPwW0EGohA17Ozebyg5uY7sPutCeD 8I3F2W0wrdGv/nl1wbxLxymgvZP7IyqE9+x9SFshb2mB/TzUqMFQgbzBK855+fa77xLD UfpFm5KLhmlkHA3XJnUm9YgYTsTBWSGh8hVuc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=eQxCrWJP24MynXr2XvUBlddKvixAEg9rhXh6BwynSASX7vEZlQEM71QM/Irpe+cQpd 1NrqhlmZn7SSycdKxqAtkjEOSxhGqoSvehRWFOGEf2ECRaltMSiq/kCDuKwo91U2N4gO F2XLwiq+L21orTEiXnegK2+9b3tcBdO5CtA/w=
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