[eigen] On complex read-cost

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

Hi eigen developers,

   The read-cost for complex<_Real> in NumTraits.h is hard-coded to 2 unlike 
the AddCost and MulCost which are functions of the eponymous costs for the 
corresponding real NumTraits. I suggest that 
NumTraits<complex<_Real>>::ReadCost = 2*NumTraits<_Real>::ReadCost

   If this change is made, it will correctly propagate read costs for 
multi-component and multi-word arbitrary precision custom scalar.


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