Re: [eigen] Indexes: why signed instead of unsigned?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


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



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/