Re: [eigen] Re: meeting in February? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Re: meeting in February?
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Thu, 14 Jan 2010 08:06:04 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=50qVkixl8/G8y+0O5n1fdxKdt8ASJppdmV8EXzi6huU=; b=nS0LEYaX1prBQXhh9ekXKns+50JeZfggyLG4ZT4pypQRm3QMcvVx8VvBNwVXAq/Ugz Uhxy31sPCMP6BccGNMNDzo+wDVRsTvOKv5U6agHYIslRET72K7BqnWajlAJt18p0AhJt Tb97lPinWOeHnrohg73etKGy2xa1kQxVCFBJ8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=PKvVjosipuMAkjLKJMwtBZPTbiC0GFAwII2O7tsUBqAJhfnyZaegX2e9bLP8CbZ4XK vE7vJNis/tTBpCNu9pDRraysNzv2mGPDxy68rXoi/8bghhd88YarTZ2ttZppkfSoHxv9 lTaFWpKp0RPqJdPInopjv/ZBmUOrc6eZUVtrQ=
On Thu, Jan 14, 2010 at 12:02 AM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
>> Oh, and i would also appreciate a recommendation for a good reading in templates/expression/traits/c++metaprogramming that I could read before the meeting :-)
>
> About templates in general, we have this book in the magic library:
> http://download.tuxfamily.org/eigen/vandevoorde1.chm
The book is good. It covers traits (chapter 15), meta functions
(chapter 17, ie. sqrt, if), loop unrolling and much more.
One simple and nice trick (I don't whether it has a cool name) which
is used in Eigen and Bjacob forgot to mention is the usage of little
helper structs (e.g. ei_matrix_swap_impl and ei_assign_impl). They
implicitly allow you to achieve a partial specialization of template
member functions without specializing the whole class which would
require you to rewrite the whole implementation - instead you only
specialize the struct and reimplement its run(...) method. I learned
about this trick very late and it's is really convenient.
@Benoit, you once referenced a paper about expression templates. Do
you recall which one it was?
- Hauke