Re: [eigen] Matrix::RowXpr::Nested is a reference... |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Matrix::RowXpr::Nested is a reference...
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 2 Oct 2009 08:24:51 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=v4Vp58QmYhzX0iHwcQZ8M/v4YCnZz06BvNOK512r3kk=; b=WPWvT5eg6U7UgoguYo8vYGxsW23IsdgbIBrBaUKEPZaqFGoF2UOWr39PtcmOE0SGL5 Vuvzty/lpj+bqUl1x7osSALFZ1g0HaAzvpB8+xL0C3Q+5SdMBTcPqREmpoxHZE42ZCp3 rg2F5rK/5v93Dk9KQ191GFhGdesmwPwTgf750=
- 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=NUQ6nnghror2LVPTh2GEeIqq/UGGZ7evr/IRK6kuOpNnQN0yVY7WN4BK+x1HqyB4Ag RVqBVq6ig8JBDWe7lh0msXRrHCLTHX8QXILmuU103hwzn70dFcfnubRqNqgipToNYOjb O3m9bNyvhY4gQUO90qAXsY1ir7NByuwuzdR2Y=
2009/10/2 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
>
>
> On Fri, Oct 2, 2009 at 2:15 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
> wrote:
>>
>> Ah yes and for plain matrices, you really want to pass them by const
>> reference, so you'd still have to edit ei_nested to handle that case
>> separately, with a condition like:
>>
>> ei_is_same_type<T, typename T::PlainMatrixType>::ret
>
> a template specialization of ei_nest for Matrix is probably much simpler and
> definitely more scalable
True !
Benoit