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 09:20:54 -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=uMGJp2DTB8JmtvsPj5A5+g4NgqFCgMOZi/HZPbm3NE0=; b=WETVC7COc+NrZD8+TmkRbZWWXf/CEatmM5Uc0TjvF5lNXwLX/27JBT2GElGxgG8jDN ofnwBOZ30/nGxa4eS+qOgUd+wbCU/wLBUnQldK+UBL5RL1CrQ+8klTgXeIDeKB7IoXw6 NAFPAIqK5yraicxyA0D144yN37NbOEeJA0dnA=
- 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=sr56hHUwqusyNLtLtJg5LPW0g5S6C6aCouiDydiGzwzrIEPZSXCVfYli74AnpVAE2Y qUOTjVg1p6VmiTcGvxSYYlFNyrWhLzmccOz2uY6wDpjF3mmmU0rCKiV9LfBnCbMzALQ5 udUSWIw5XhowaRgP08aZq3Q3LuuaaTXgF3Srw=
Change done.
2010/4/23 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> 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
>>
>>
>>
>