mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Improve cost estimation of complex division
This commit is contained in:
parent
5269d11935
commit
ac5377e161
@ -671,6 +671,14 @@ struct scalar_div_cost {
|
|||||||
enum { value = 8*NumTraits<T>::MulCost };
|
enum { value = 8*NumTraits<T>::MulCost };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename T,bool Vectorized>
|
||||||
|
struct scalar_div_cost<std::complex<T>, Vectorized> {
|
||||||
|
enum { value = 2*scalar_div_cost<T>::value
|
||||||
|
+ 6*NumTraits<T>::MulCost
|
||||||
|
+ 3*NumTraits<T>::AddCost
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
template<bool Vectorized>
|
template<bool Vectorized>
|
||||||
struct scalar_div_cost<signed long,Vectorized,typename conditional<sizeof(long)==8,void,false_type>::type> { enum { value = 24 }; };
|
struct scalar_div_cost<signed long,Vectorized,typename conditional<sizeof(long)==8,void,false_type>::type> { enum { value = 24 }; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user