Re: [eigen] proposal to use static const integer class members instead of enum values |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
On 14.12.2014 09:12, Marc Glisse wrote:
The main goal of deriving from integer_constant is to have only one class that needs the definition, as long as the constant is always called value. But since in Eigen the constants can have many, many different names (IsColVector, ExpandMem, RowsAtCompileTime, OuterSize, etc) it wouldn't gain much if anything.
A maybe feasible alternative would be to put all these into DenseBase (or EigenBase). This would require writing
template<Derived> const Index class DenseBase<Derived>::RowsAtCompileTime; //... only once. I guess they can still be initialized via internal::traits<Derived>::RowsAtCompileTime; Christoph -- ---------------------------------------------- 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+ | http://listengine.tuxfamily.org/ |