mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-19 08:09:36 +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];
|
||||
_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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user