Re: [eigen] Commenting issue #110, disabling operator[] for matrices |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Commenting issue #110, disabling operator[] for matrices
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 23 Apr 2010 08:43:38 -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:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=H2p3Ph2CuG36wIDuDnWMsoQjPn5IGb+K3OLlIaOse1o=; b=FARgeqqP1H7BQ8wOTrGCE2Js8JAkGr0CEv1HxHNPzkcG0G2QTO2Sa4GwHe1XfwkfTS j9ZpRK2WqJZG+p6rDoWL99L7MebvF+nuiimPDdAYJQKpdjd5Ozxh1NscpxwhgiSuPmqL ktsk4PA626wWRFoG4RN+cCrBorQ4266JGTP6k=
- 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=d+TFo6xrErxzHgyqMk+O5B7NrkvMMekyz28WeSvdH4gJNdFBu7YZDDEaTdaok6/g/b 5EukIDrXJnc3joyR137vPTb1fc1XTlD11jporTsmIRlvlbM+gXIwJBcYiLV36OJNYJsy FCpfJ8lEkoyy9gTSNuSQMAk0IkIfDf2houMA8=
2010/4/22 Thomas Capricelli <orzel@xxxxxxxxxxxxxxx>:
>
>
> In data giovedì 22 aprile 2010 14:34:05, Benoit Jacob ha scritto:
>> matrix[i,j]
>>
>> which in c++ compiles as
>>
>> matrix[i]
>
>
> (nitpicking mode on)
>
> Isn't it rather matrix[j] ?
> I thought the coma operator evaluated as the last, not first element.
You are right, as confirmed by this test program.
#include <iostream>
int main()
{
int i = (1,2);
std::cout << i << std::endl;
}
>
> ++
> Thomas
> --
> Thomas Capricelli <orzel@xxxxxxxxxxxxxxx>
> http://www.freehackers.org/thomas
>
>
>