[eigen] new tutorial on writing functions taking Eigen types as paramters |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: Eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] new tutorial on writing functions taking Eigen types as paramters
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Wed, 4 Aug 2010 12:04:45 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=nqsg5yoD68ORra9HIddcA7Dql3ywyKdGomyxRFHdZQ4=; b=RGr2cqkmOfPagF5C+GWhvL5Qn/T1n50tA8x2GuVT++GEbown36OIf3SPRbpxhpwhLh WNoWpqsVUXc8qLeFAvgF4nXMwmwXts9vWAdfB97gqj6wxqigMIiA6k3q9v13hrrFMNeW Nlm1R+SPPkFqDoDZFLc8id7pD4Io1FQf/pwJE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xNP72ghfMLCsVnVJWi8garz2xOZ/9nb6W5nP1hqPisHj8CvhGJn+LVs58T57922mJ0 XbuYGp884cBpTvnEjKL/BCnPpHUz5ISBFrWHYahzMNlX8a/X33jBFiRBPWQkopHTHDKz xajid57EtN7A49EdPnBb4VW+kz4A16M+pQleM=
Hi,
caused by my yesterday's naivety I wrote a tutorial on writing
functions taking Eigen types as parameters.
There were some surprises and I would appreciate if somebody finds the
time to read the page and give me some feedback.
Just a short note for Visual Studio users. It was quite a surprise for
me to see that the following example does not compile on Visual Studio
10
struct Base {};
struct Derived : public Base {};
void buggy(Base&& b) {}
int main()
{
Derived d;
buggy(d);
}
which means, we cannot yet use rvalue references to circumvent the
EIGEN_REF_TO_TEMPORARY hack.
- Hauke