Re: [eigen] Some compilation warning

[ Thread Index | Date Index | More Archives ]

Am 02.03.2015 um 14:16 schrieb Márton Danóczy:
Great point, that bothers me, too. The convention in the standard library
is to use size_t as indices, which means one has to keep in mind that
looping over Eigen objects requires Eigen::DenseIndex.

Just adding a note regarding size_t:

We decided to use ptrdiff_t instead of size_t for various internal design reasons. Independent from whether size_t would have any actual benefits here, it's definitely too late to change that now. Most importantly, this would generate sign-conversion warnings for users with code that has been valid for a long time.


Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: +49 (421) 218-64252

Mail converted by MHonArc 2.6.19+