Re: [eigen] new tutorial on writing functions taking Eigen types as paramters |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] new tutorial on writing functions taking Eigen types as paramters
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 4 Aug 2010 10:05:24 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=MhUCj6ty5xop3yZkBUMsQfuKt/L7KBwicj8rdBUDihE=; b=uuMq7ZA5UCaBoW3FghVBIbvokGN1Bg1gHezXXUICim8sBIVm1DdJjdtA+0OoUZj6eC B9KYL15R2PH2oaLKtnT6Tt7nkRoRjI9CUVtkSepWarqMNm5lLN65UNiQGfMjm4r74vgj k686kqWaG8hMMcd7AplThhL93yZQBl/jiYB4Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=PoKi60WccnD+8zd5W8eaI0bmLbXQBOxRs2Tca6PvmLMLsKT2EJe2Dh7ggZ1EhkzLXG OtkYHe9bksR49BjrGOTQY1rxMEKsK9sgTcmx/WcmgHHVq6AtT9GfrzbyzXlkJiqOFR+j f7ygvi2F4Y37dWjUgYjm6DgQ+wK9hoVtdJcVA=
2010/8/4 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> Hi,
>
> caused by my yesterday's naivety I wrote a tutorial on writing
> functions taking Eigen types as parameters.
Great idea, looking forward to it. The way I see it:
- we need a special topic page on the main base classes (DenseBase,
....) which could give examples of functions taking Eigen objects.
- we need a very abridged/simplified version of that on the last page
of the tutorial, which should be where users learn what they really
need to know in order to be a little autonomous reading the docs
(which requires them to know a little about the base classes).
The question of how to write a function taking eigen objects as
arguments is one we've answered easily 10 times on the forum. Having
something to link to would be very valuable.
Benoit
>
> 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
>
>
>