Re: [eigen] Indexes: why signed instead of unsigned? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Indexes: why signed instead of unsigned?
- From: Rui Maciel <rui.maciel@xxxxxxxxx>
- Date: Mon, 10 May 2010 15:42:52 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=cXYVl2HI2UCJzIa2Ar/kVQWW7ZSKh6L3jB9+2zd6Ma8=; b=ZTcqQIScRO8IOJ0F+BStI3Cfv2hZQAlwp81VAu1B4B7dhv2ED1hikaVgcV+G2DrLu8 JHdzHgoTDhzzSradamlca6xw5mFDWvGuknS8kFiuXw8ASqkJk3vilpTmIxqJgxUYLs6s SkqXpCR3sFHz5D/PZwQNOLPOQ4MNWuveAGJQQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=nJrwGvuBGroHHfbTtxV2xNSGPoCD5+N5bBpvLRtRNunC5v45m5kOVVpNp36E8Oad2/ u67hLycaLCusdsA13pnas8xQU+q92dOtwXgICXlziifvQYpCCQmmtVfBkUjG1McDzLAa d35OgsFrrEul0ux+uR7jIiYawhuVreWOfZM+I=
Benoit Jacob wrote:
> See e.g. answer here:
>
> https://bitbucket.org/eigen/eigen/issue/106/index-and-size-type
>
> Benoit
According to the example given in that answer, if we rely on a loop similar
to:
for(int col = cols() - 1; col>=0; --col)
Does the cols() method deed to te signed? To put it in other words,
independently of what value int col will assume throughout the loop, isn't the
output of cols() always positive?
Rui Maciel