Re: [eigen] Passing result of block() as non-const reference-to-matrix? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Passing result of block() as non-const reference-to-matrix?
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 9 Jul 2010 13:32:03 -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; bh=vs1Bd46tOcjZp+tVtjzdA1gC5Lc1SE+Tx08a2Su8+Ws=; b=x3t0CJ3eGG/RVQLlW6Hk0fWaVQ3k/OKlYdkZQ4gBZR0ZDdvVYpmJXfQEDgDwpEp32Q FKygeGbzssHJnDxJITwGw1jjNRDsHaKzmp05nqy51hbKdofBlG/zqKmL7WAQhghzEWZa gj1qHan6mGCDKR1xTZjlr2o69h+57kjuLu3xg=
- 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; b=BN73ZRUm8uL49V0LtsjsqV4nd3pR9697Ozk/K/pVOWV67ct8nwEiuh1kViiP+xIfVM 6DYguwNp3mTzM2mndYbC6+VjNpr/90IPU0QyrtejO1SOirXPqjf3LsHriNAPKecKtwe+ SxxrPOMxei0JwyKUL5bpPXo4b7vwj0qXcBWLU=
2010/7/9 Gael Guennebaud <gael.guennebaud@xxxxxxxxx>:
> On Fri, Jul 9, 2010 at 7:03 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
>>> It's a pity that there is no clean solution that is portable to pre-C++0x. I still don't quite get that it does work as expected when I pass a const Block to a const Matrix & -- it is not clear for me why that /does/ work.
>>
>> That does /not/ work :-)
>
> that does work ;) The block expression will be evaluated into a
> temporary Matrix object. (unless the Matrix<> type is templated as
> well but this is not the case in his example)
oooh ok :)
>
> gael
>
>
>