[eigen] On complex read-cost |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] On complex read-cost
- From: Manoj Rajagopalan <rmanoj@xxxxxxxxx>
- Date: Tue, 25 May 2010 18:21:26 -0400
- Organization: EECS Dept., University of Michigan, Ann Arbor, MI, USA
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.
thanks,
Manoj