mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
fix readcost for complex types
This commit is contained in:
parent
e7dc772554
commit
4a2d6ece2e
@ -113,7 +113,7 @@ template<typename _Real> struct NumTraits<std::complex<_Real> >
|
||||
typedef _Real Real;
|
||||
enum {
|
||||
IsComplex = 1,
|
||||
ReadCost = 2,
|
||||
ReadCost = 2 * NumTraits<_Real>::ReadCost,
|
||||
AddCost = 2 * NumTraits<Real>::AddCost,
|
||||
MulCost = 4 * NumTraits<Real>::MulCost + 2 * NumTraits<Real>::AddCost
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user