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*: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>*Date*: Mon, 16 Aug 2010 11:55:14 +0200*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=otDOLfhHGGm3z9x7OYEtsvBCma9OZ9NTXQdBbS/A4L8=; b=TI7NBGtTUW05X5Ub4QuSrVEQe/OhxLye/7dASwobf8zJce+0bxIlhxR2Zc/zSPg1Gi 2JJ5pOVr0OmJ52keihfCK95JUk8wtFewrnREJfoyr6XZrsbr7SL4wljeITAaVHMLx8ZC r4KFay/t9b77aQ0CwkUAK8/QVgyKbS36KakbU=*Domainkey-signature*: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=l2XeKMIlm19+HEinVx533uMeOVqKVRsu1UjyzLEm64bv1VkhuZPSNfYDD7fq97tw93 EKYfEwtCmzmQTBlYBZGLhgk+een5+XLRbaB0Wt/cJSXV/DWhVrLWFLzhbChj3vQZwghL tZS0KumXWPfdAViqaaYHCoEeWQ29pQbZJNng4=

Hi, thank you Hauke for your effort on writing this page. On Thu, Aug 5, 2010 at 3:48 AM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote: > - mention Nested (at the end of the page! it's an advanced topic, but > it's important for advanced users). I don't think this is an advanced topic, and to be safe, every argument should be systematically converted to their nested type: template<typename Derived> void foo(const MatrixBase<Derived>& _x) { typename Derived::Nested x (_x); // use x, not _x } For advanced user we should also explain ei_nested which is preferred if the argument is used more than once. Since ei_nested is mostly internal, maybe we should also add a slightly higher level public wrapper.... gael

**Follow-Ups**:

**References**:**[eigen] new tutorial on writing functions taking Eigen types as paramters***From:*Hauke Heibel

**Re: [eigen] new tutorial on writing functions taking Eigen types as paramters***From:*Benoit Jacob

**Re: [eigen] new tutorial on writing functions taking Eigen types as paramters***From:*Hauke Heibel

**Re: [eigen] new tutorial on writing functions taking Eigen types as paramters***From:*Benoit Jacob

**Re: [eigen] new tutorial on writing functions taking Eigen types as paramters***From:*Hauke Heibel

**Re: [eigen] new tutorial on writing functions taking Eigen types as paramters***From:*Benoit Jacob

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Expression templates** - Next by Date:
**Re: [eigen] new tutorial on writing functions taking Eigen types as paramters** - Previous by thread:
**Re: [eigen] new tutorial on writing functions taking Eigen types as paramters** - Next by thread:
**Re: [eigen] new tutorial on writing functions taking Eigen types as paramters**

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