mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
fix ugly conversion from double[2] to complex
This commit is contained in:
parent
5354ffbb4f
commit
d4b664c4cd
@ -308,7 +308,7 @@ template<> EIGEN_STRONG_INLINE std::complex<double> ei_pfirst<Packet1cd>(const
|
|||||||
{
|
{
|
||||||
EIGEN_ALIGN16 double res[2];
|
EIGEN_ALIGN16 double res[2];
|
||||||
_mm_store_pd(res, a.v);
|
_mm_store_pd(res, a.v);
|
||||||
return *(std::complex<double>*)res;
|
return std::complex<double>(res[0],res[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<> EIGEN_STRONG_INLINE Packet1cd ei_preverse(const Packet1cd& a) { return a; }
|
template<> EIGEN_STRONG_INLINE Packet1cd ei_preverse(const Packet1cd& a) { return a; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user